Skip to content

Conversation

@tex3d
Copy link
Contributor

@tex3d tex3d commented Dec 10, 2025

This PR reserves HLSL intrinsic ops (HL opcodes) and DXIL ops for the following features and operations:

Group Wave Index:

  • GetGroupWaveIndex
  • GetGroupWaveCount

Clustered Geometry:

  • ClusterID
  • RayQuery::CandidateClusterID
  • RayQuery::CommittedClusterID
  • HitObject::ClusterID

Triangle Object Positions (return void until later update):

  • TriangleObjectPosition
  • RayQuery::CandidateTriangleObjectPosition
  • RayQuery::CommittedTriangleObjectPosition
  • HitObject::TriangleObjectPosition

Most file edits are auto-generated updates, except:

  • hctdb.py
  • gen_intrin_main.txt
  • HLOperationLower.cpp

tex3d added 2 commits December 9, 2025 15:01
This change reserves HLSL intrinsic HL opcodes and experimental DXIL ops for GetGroupWaveIndex and GetGroupWaveCount for SM 6.10.
Note: TriangleObjectPosition requires a new DXIL intrinsic type mapping, so the operations currently return void, with TODOs for updating signatures.
@github-actions
Copy link
Contributor

github-actions bot commented Dec 10, 2025

✅ With the latest revision this PR passed the Python code formatter.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 10, 2025

✅ With the latest revision this PR passed the C/C++ code formatter.

Copy link
Collaborator

@V-FEXrt V-FEXrt left a comment

Choose a reason for hiding this comment

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

Generally, looks good, I didn't go cross reference the specs so I can't say for sure the specific ops have the right shape, but I imagine you did, and they'll be updated during implementation regardless

Just assign 'insts' to self.get_insts_by_names.

This makes using it in main populate_categories_and_models easier in the future.
@tex3d tex3d enabled auto-merge (squash) December 10, 2025 20:06
@tex3d tex3d merged commit efe12b6 into microsoft:main Dec 10, 2025
12 checks passed
@github-project-automation github-project-automation bot moved this from New to Done in HLSL Roadmap Dec 10, 2025
@tex3d tex3d deleted the reserve-sm6-10-ops branch December 10, 2025 21:40
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.

3 participants