[DX12] Add support for Samplers in DX12.#1331
Open
manon-traverse wants to merge 3 commits into
Open
Conversation
d082a3c to
0609be6
Compare
0609be6 to
273e4a5
Compare
This was referenced Jun 24, 2026
273e4a5 to
909509e
Compare
14ea640 to
99062f2
Compare
EmilioLaiso
approved these changes
Jun 26, 2026
Comment on lines
+324
to
+341
| enum class RootParameterType : uint32_t { | ||
| DescriptorTable = 0, | ||
| SamplerTable, | ||
| Constant, | ||
| CBV, | ||
| SRV, | ||
| UAV, | ||
| }; | ||
|
|
||
| struct RoogtSignatureLayout { | ||
| RootParameterType ParameterType : 3; | ||
| uint32_t Count : 29; | ||
|
|
||
| RoogtSignatureLayout(RootParameterType ParameterType, uint32_t Count) | ||
| : ParameterType(ParameterType), Count(Count) {} | ||
| RoogtSignatureLayout() = delete; | ||
| }; | ||
|
|
Collaborator
There was a problem hiding this comment.
Could've probably been two PRs, but at least this way it doesn't only introduces new API but it also shows how it's used
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds support for samplers in DX12.
This change is a lot larger than you would expect from adding samplers.
This is because samplers need to live in a separate DescriptorHeap which cascaded into a couple of issues:
Adding this feature does allow more tests to succeed on DX12.