MCPcopy Create free account
hub / github.com/Tencent/tgfx / getSamplerVariable

Method getSamplerVariable

src/gpu/UniformHandler.cpp:64–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64ShaderVar UniformHandler::getSamplerVariable(SamplerHandle handle) const {
65 auto& uniform = samplers[handle.toIndex()];
66 return ShaderVar(uniform);
67}
68
69std::unique_ptr<UniformBuffer> UniformHandler::makeUniformBuffer(ShaderStage stage) const {
70 if (stage == ShaderStage::Vertex && vertexUniforms.empty()) {

Callers 1

appendTextureLookupMethod · 0.80

Calls 2

ShaderVarClass · 0.85
toIndexMethod · 0.80

Tested by

no test coverage detected