mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-10-25 02:10:51 +00:00
Updated spirv-tools.
This commit is contained in:
@@ -26,7 +26,7 @@ namespace {
|
||||
spv_result_t ValidateMemberName(ValidationState_t& _, const Instruction* inst) {
|
||||
const auto type_id = inst->GetOperandAs<uint32_t>(0);
|
||||
const auto type = _.FindDef(type_id);
|
||||
if (!type || SpvOpTypeStruct != type->opcode()) {
|
||||
if (!type || spv::Op::OpTypeStruct != type->opcode()) {
|
||||
return _.diag(SPV_ERROR_INVALID_ID, inst)
|
||||
<< "OpMemberName Type <id> " << _.getIdName(type_id)
|
||||
<< " is not a struct type.";
|
||||
@@ -45,7 +45,7 @@ spv_result_t ValidateMemberName(ValidationState_t& _, const Instruction* inst) {
|
||||
spv_result_t ValidateLine(ValidationState_t& _, const Instruction* inst) {
|
||||
const auto file_id = inst->GetOperandAs<uint32_t>(0);
|
||||
const auto file = _.FindDef(file_id);
|
||||
if (!file || SpvOpString != file->opcode()) {
|
||||
if (!file || spv::Op::OpString != file->opcode()) {
|
||||
return _.diag(SPV_ERROR_INVALID_ID, inst)
|
||||
<< "OpLine Target <id> " << _.getIdName(file_id)
|
||||
<< " is not an OpString.";
|
||||
@@ -57,10 +57,10 @@ spv_result_t ValidateLine(ValidationState_t& _, const Instruction* inst) {
|
||||
|
||||
spv_result_t DebugPass(ValidationState_t& _, const Instruction* inst) {
|
||||
switch (inst->opcode()) {
|
||||
case SpvOpMemberName:
|
||||
case spv::Op::OpMemberName:
|
||||
if (auto error = ValidateMemberName(_, inst)) return error;
|
||||
break;
|
||||
case SpvOpLine:
|
||||
case spv::Op::OpLine:
|
||||
if (auto error = ValidateLine(_, inst)) return error;
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user