MCPcopy Create free account
hub / github.com/KhronosGroup/SPIRV-Tools / IsFloatImageFormat

Function IsFloatImageFormat

source/val/validate_image.cpp:242–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240}
241
242bool IsFloatImageFormat(spv::ImageFormat format) {
243 switch (format) {
244 case spv::ImageFormat::Rgba32f:
245 case spv::ImageFormat::Rgba16f:
246 case spv::ImageFormat::R32f:
247 case spv::ImageFormat::Rgba8:
248 case spv::ImageFormat::Rgba8Snorm:
249 case spv::ImageFormat::Rg32f:
250 case spv::ImageFormat::Rg16f:
251 case spv::ImageFormat::R11fG11fB10f:
252 case spv::ImageFormat::R16f:
253 case spv::ImageFormat::Rgba16:
254 case spv::ImageFormat::Rgb10A2:
255 case spv::ImageFormat::Rg16:
256 case spv::ImageFormat::Rg8:
257 case spv::ImageFormat::R16:
258 case spv::ImageFormat::R8:
259 case spv::ImageFormat::Rgba16Snorm:
260 case spv::ImageFormat::Rg16Snorm:
261 case spv::ImageFormat::Rg8Snorm:
262 case spv::ImageFormat::R16Snorm:
263 case spv::ImageFormat::R8Snorm:
264 return true;
265 default:
266 break;
267 }
268 return false;
269}
270
271bool IsImageSparse(spv::Op opcode) {
272 switch (opcode) {

Callers 1

ValidateTypeImageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected