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

Function ValidateImageSparseTexelsResident

source/val/validate_image.cpp:2392–2406  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2390}
2391
2392spv_result_t ValidateImageSparseTexelsResident(ValidationState_t& _,
2393 const Instruction* inst) {
2394 if (!_.IsBoolScalarType(inst->type_id())) {
2395 return _.diag(SPV_ERROR_INVALID_DATA, inst)
2396 << "Expected Result Type to be bool scalar type";
2397 }
2398
2399 const uint32_t resident_code_type = _.GetOperandTypeId(inst, 2);
2400 if (!_.IsIntScalarType(resident_code_type)) {
2401 return _.diag(SPV_ERROR_INVALID_DATA, inst)
2402 << "Expected Resident Code to be int scalar";
2403 }
2404
2405 return SPV_SUCCESS;
2406}
2407
2408spv_result_t ValidateImageProcessingQCOMDecoration(ValidationState_t& _, int id,
2409 spv::Decoration decor) {

Callers 1

ImagePassFunction · 0.85

Calls 5

IsBoolScalarTypeMethod · 0.80
diagMethod · 0.80
GetOperandTypeIdMethod · 0.80
IsIntScalarTypeMethod · 0.80
type_idMethod · 0.45

Tested by

no test coverage detected