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

Method addSampler

Engine/source/shaderGen/customShaderFeature.cpp:131–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129}
130
131void CustomShaderFeatureData::addSampler(String name, String type, U32 arraySize)
132{
133#ifdef TORQUE_D3D11
134 if (GFX->getAdapterType() == GFXAdapterType::Direct3D11)
135 mFeatureHLSL->addSampler(name, type, arraySize);
136#endif
137#ifdef TORQUE_OPENGL
138 if (GFX->getAdapterType() == GFXAdapterType::OpenGL)
139 mFeatureGLSL->addSampler(name, type, arraySize);
140#endif
141}
142
143void CustomShaderFeatureData::addTexture(String name, String type, String samplerState, U32 arraySize)
144{

Callers 1

Calls 1

getAdapterTypeMethod · 0.45

Tested by

no test coverage detected