Texture and Sampler Association #220
-
Is it possible to associate texture samplers with specific textures? And I'm not sure if it matters, but is it still possible while using a global/shared pipeline resource signature ( At first, I set a single sampler with.. That worked great. No trouble. Now I'm trying to create a few samplers, and have textures select them based on certain traits, like being a 2D image vs 3D texture. I noticed in some of the samples, this is used.. But I don't understand how this associates anything with the shader SRB. When I try to do this without assigning anything to my global SRB, I get errors that nothing is assigned to it, and it renders like a default sampler. Would you be able to point me in the right direction? Is there a way to synchronize textures and samplers? Do I need to do something on the HLSL side, or within the global signature? If I change my HLSL sampler into an array, will the texture sampler assignment then start working? BTW, if you get some free time in the future, I would love to see more samples or tutorials that make use of shared pipeline resource signatures created with |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Please read this |
Beta Was this translation helpful? Give feedback.
Please read this