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

Method IsScalarOrVector

shadercompiler/Type.cpp:108–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108bool Type::IsScalarOrVector() const
109{
110 return symbol == nullptr &&
111 ( builtInType == OP_INT ||
112 builtInType == OP_UINT ||
113 builtInType == OP_BOOL ||
114 builtInType == OP_HALF ||
115 builtInType == OP_FLOAT ||
116 builtInType == OP_DOUBLE ||
117 builtInType == OP_BINDLESSHANDLETEXTURE2D ||
118 builtInType == OP_BINDLESSHANDLETEXTURE3D ||
119 builtInType == OP_BINDLESSHANDLETEXTURECUBE ||
120 builtInType == OP_BINDLESSHANDLESAMPLER );
121}
122
123bool Type::IsTexture() const
124{

Callers 10

OutputHLSL.cppFile · 0.80
MulIntrinsicTypeFunction · 0.80
CanImplicitCastMethod · 0.80
ReplaceFloatModuloFunction · 0.80
GatherInputsFunction · 0.80
GatherOutputsFunction · 0.80
PatchVposFunction · 0.80
PatchShaderFunction · 0.80
ComputeMemberTypeFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected