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

Function IsImageSparse

source/val/validate_image.cpp:271–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

269}
270
271bool IsImageSparse(spv::Op opcode) {
272 switch (opcode) {
273 case spv::Op::OpImageSparseSampleImplicitLod:
274 case spv::Op::OpImageSparseSampleExplicitLod:
275 case spv::Op::OpImageSparseSampleDrefImplicitLod:
276 case spv::Op::OpImageSparseSampleDrefExplicitLod:
277 case spv::Op::OpImageSparseSampleProjImplicitLod:
278 case spv::Op::OpImageSparseSampleProjExplicitLod:
279 case spv::Op::OpImageSparseSampleProjDrefImplicitLod:
280 case spv::Op::OpImageSparseSampleProjDrefExplicitLod:
281 case spv::Op::OpImageSparseFetch:
282 case spv::Op::OpImageSparseGather:
283 case spv::Op::OpImageSparseDrefGather:
284 case spv::Op::OpImageSparseTexelsResident:
285 case spv::Op::OpImageSparseRead:
286 return true;
287 default:
288 break;
289 }
290 return false;
291}
292
293// Returns true if the opcode is a Image instruction which applies
294// homogenous projection to the coordinates.

Callers 1

ValidateImageOperandsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected