MCPcopy Create free account
hub / github.com/carbonengine/trinity / IsTexture

Method IsTexture

shadercompiler/Type.cpp:123–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121}
122
123bool Type::IsTexture() const
124{
125 return symbol == nullptr &&
126 ( builtInType == OP_TEXTURE ||
127 builtInType == OP_TEXTURE1D ||
128 builtInType == OP_TEXTURE2D ||
129 builtInType == OP_TEXTURE3D ||
130 builtInType == OP_TEXTURECUBE ||
131 builtInType == OP_TEXTURE1DARRAY ||
132 builtInType == OP_TEXTURE2DARRAY ||
133 builtInType == OP_TEXTURE3DARRAY ||
134 builtInType == OP_TEXTURECUBEARRAY ||
135 builtInType == OP_TEXTURE2DMS ||
136 builtInType == OP_TEXTURE2DMSARRAY ||
137 builtInType == OP_RWTEXTURE1D ||
138 builtInType == OP_RWTEXTURE2D ||
139 builtInType == OP_RWTEXTURE3D ||
140 builtInType == OP_RWTEXTURE1DARRAY ||
141 builtInType == OP_RWTEXTURE2DARRAY ||
142 builtInType == OP_RWTEXTURE3DARRAY );
143}
144
145bool Type::IsTextureArray() const
146{

Callers 8

OutputHLSL.cppFile · 0.80
PatchShaderFunction · 0.80
CreateGlobalInputsStructFunction · 0.80
ParseGlobalInputFunction · 0.80
IsTextureIndexingFunction · 0.80
PatchMetalTextureCallsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected