MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / addUniform

Method addUniform

Engine/source/shaderGen/customShaderFeature.cpp:119–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119void CustomShaderFeatureData::addUniform(String name, String type, String defaultValue, U32 arraySize)
120{
121#ifdef TORQUE_D3D11
122 if (GFX->getAdapterType() == GFXAdapterType::Direct3D11)
123 mFeatureHLSL->addUniform(name, type, defaultValue, arraySize);
124#endif
125#ifdef TORQUE_OPENGL
126 if (GFX->getAdapterType() == GFXAdapterType::OpenGL)
127 mFeatureGLSL->addUniform(name, type, defaultValue, arraySize);
128#endif
129}
130
131void CustomShaderFeatureData::addSampler(String name, String type, U32 arraySize)
132{

Callers 1

Calls 1

getAdapterTypeMethod · 0.45

Tested by

no test coverage detected