MCPcopy Create free account
hub / github.com/Unity-Technologies/HLSLcc / GetVulkanDummySamplerName

Method GetVulkanDummySamplerName

src/toGLSLInstruction.cpp:790–817  ·  view source on GitHub ↗

Texel fetches etc need a dummy sampler (because glslang wants one, for Reasons(tm)). Any non-shadow sampler will do, so try to get one from sampler registers. If the current shader doesn't have any, declare a dummy one.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 7

ResourceNameFunction · 0.85
bfromcstrFunction · 0.85
bformataFunction · 0.85
bdestroyFunction · 0.85
IsVulkanMethod · 0.80

Tested by

no test coverage detected