MCPcopy Create free account
hub / github.com/Inori/GPCS4 / emitLoadSampledImage

Method emitLoadSampledImage

GPCS4/Graphics/Gcn/GcnCompilerVectorMemory.cpp:961–973  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

959 }
960
961 uint32_t GcnCompiler::emitLoadSampledImage(
962 const GcnTexture& textureResource,
963 const GcnSampler& samplerResource,
964 bool isDepthCompare)
965 {
966 const uint32_t sampledImageType = isDepthCompare
967 ? m_module.defSampledImageType(textureResource.depthTypeId)
968 : m_module.defSampledImageType(textureResource.colorTypeId);
969
970 return m_module.opSampledImage(sampledImageType,
971 m_module.opLoad(textureResource.imageTypeId, textureResource.varId),
972 m_module.opLoad(samplerResource.typeId, samplerResource.varId));
973 }
974
975
976 GcnBufferInfo GcnCompiler::getBufferType(

Callers

nothing calls this directly

Calls 3

defSampledImageTypeMethod · 0.80
opSampledImageMethod · 0.80
opLoadMethod · 0.80

Tested by

no test coverage detected