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

Method defImageType

GPCS4/Graphics/SpirV/SpirvModule.cpp:857–876  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

855
856
857 uint32_t SpirvModule::defImageType(
858 uint32_t sampledType,
859 spv::Dim dimensionality,
860 uint32_t depth,
861 uint32_t arrayed,
862 uint32_t multisample,
863 uint32_t sampled,
864 spv::ImageFormat format) {
865 std::array<uint32_t, 7> args = {{
866 sampledType,
867 static_cast<uint32_t>(dimensionality),
868 depth, arrayed,
869 multisample,
870 sampled,
871 static_cast<uint32_t>(format)
872 }};
873
874 return this->defType(spv::OpTypeImage,
875 args.size(), args.data());
876 }
877
878
879 uint32_t SpirvModule::defSampledImageType(

Callers 1

emitDclTextureMethod · 0.80

Calls 3

defTypeMethod · 0.95
sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected