| 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( |
nothing calls this directly
no test coverage detected