Skip to content

[HLSL] Fix GroupSharedLimit preview guard - #8872

Merged
Jack Elliott (JoeCitizen) merged 1 commit into
microsoft:mainfrom
JoeCitizen:fix-groupsharedlimit-preview-guard
Sep 2, 2026
Merged

[HLSL] Fix GroupSharedLimit preview guard#8872
Jack Elliott (JoeCitizen) merged 1 commit into
microsoft:mainfrom
JoeCitizen:fix-groupsharedlimit-preview-guard

Conversation

@JoeCitizen

Copy link
Copy Markdown
Collaborator

Summary

  • guard the GroupSharedLimit execution tests and helper APIs with DIRECT3D_PREVIEW_BUILD
  • keep the SDK version check only for the local D3D12_FEATURE_DATA_D3D12_OPTIONS_PREVIEW compatibility definition

Testing

  • built ExecHLSLTests with Ninja
  • rebuilt the affected translation units and linked ExecHLSLTests.dll with DIRECT3D_PREVIEW_BUILD explicitly enabled

Guard the GroupSharedLimit execution tests and helpers with DIRECT3D_PREVIEW_BUILD rather than the preview SDK version define.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 35024739-8827-4a71-9077-e3221bfade26

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The consistent guard changes correctly isolate preview-only APIs and tests without affecting non-preview functionality.

Pull request overview

Aligns GroupSharedLimit execution-test compilation with the Direct3D preview build configuration.

Changes:

  • Guards test registration, implementations, and helper APIs with DIRECT3D_PREVIEW_BUILD.
  • Retains the SDK-version check only for compatibility definitions.
File summaries
File Description
ExecutionTest.cpp Updates GroupSharedLimit test guards.
HlslExecTestUtils.cpp Updates helper and compatibility-definition guards.
HlslExecTestUtils.h Updates helper declaration guards.
Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 0
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@alsepkow Alex Sepkowski (alsepkow) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JoeCitizen
Jack Elliott (JoeCitizen) merged commit 458f523 into microsoft:main Sep 2, 2026
14 checks passed
@github-project-automation github-project-automation Bot moved this from New to Done in HLSL Roadmap Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants