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
↧