Skip to content

Allow SamplerFeedbackTexture_UAV in MutableSrvUavCbv bindless layouts - #138

Open
lawfuyang wants to merge 1 commit into
NVIDIA-RTX:mainfrom
lawfuyang:allow-sampler-feedback-uav-in-bindless-mutable-srv-uav-cbv
Open

Allow SamplerFeedbackTexture_UAV in MutableSrvUavCbv bindless layouts#138
lawfuyang wants to merge 1 commit into
NVIDIA-RTX:mainfrom
lawfuyang:allow-sampler-feedback-uav-in-bindless-mutable-srv-uav-cbv

Conversation

@lawfuyang

Copy link
Copy Markdown
Contributor

Sampler feedback textures are UAV resources on D3D12 (created with D3D12_RESOURCE_FLAG_ALLOW_UNORDERED_ACCESS, cleared via ClearUnorderedAccessViewUint). The D3D12 backend already correctly handles them:

  • BindlessLayout maps SamplerFeedbackTexture_UAV -> D3D12_DESCRIPTOR_RANGE_TYPE_UAV
  • writeDescriptorTable creates the correct UAV via CreateSamplerFeedbackUnorderedAccessView

The validation layer was incorrectly rejecting them. This fix:

  1. Allows SamplerFeedbackTexture_UAV in the MutableSrvUavCbv validation switch
  2. Updates the nvrhi.h documentation to list it as a valid descriptor type

Sampler feedback textures are UAV resources on D3D12 (created with
D3D12_RESOURCE_FLAG_ALLOW_UNORDERED_ACCESS, cleared via ClearUnorderedAccessViewUint).
The D3D12 backend already correctly handles them:
- BindlessLayout maps SamplerFeedbackTexture_UAV -> D3D12_DESCRIPTOR_RANGE_TYPE_UAV
- writeDescriptorTable creates the correct UAV via CreateSamplerFeedbackUnorderedAccessView

The validation layer was incorrectly rejecting them. This fix:
1. Allows SamplerFeedbackTexture_UAV in the MutableSrvUavCbv validation switch
2. Updates the nvrhi.h documentation to list it as a valid descriptor type
@lawfuyang

Copy link
Copy Markdown
Contributor Author

I have read the CLA Document and I hereby sign the CLA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant