Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17825

Is there a way to declare and describe static sampler in shader without fully describing root signature?

$
0
0
I am implementing static samplers / immutable samplers in the framework. All the examples I have seen that use static samplers declare them in the root signature string. But I dont ever describe the root signature in shader code to keep things consistent with Vulkan. So I am wondering if there is another way to declare a sampler as static sampler in shader code? Or do I have to parse the shader myself and use some naming convention like all samplers with prefix "STATIC_" are to be considered static samplers. And then put the description above the sampler in comments. That would be a pain so if there is a way to just declare a static sampler without using the root signature string it would be really helpful. Thank you

Viewing all articles
Browse latest Browse all 17825

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>