Skip to content

Commit

Permalink
Formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
FoggyMist committed Feb 2, 2023
1 parent 0d75f96 commit a544fe2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions source/val/validate_type.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -353,10 +353,10 @@ spv_result_t ValidateTypeStruct(ValidationState_t& _, const Instruction* inst) {
if (!_.HasDecoration(inst->id(), spv::Decoration::Block) &&
!_.HasDecoration(inst->id(), spv::Decoration::BufferBlock)) {
return _.diag(SPV_ERROR_INVALID_ID, inst)
<< _.VkErrorID(4680)
<< spvLogStringForEnv(_.context()->target_env)
<< ", OpTypeStruct containing an OpTypeRuntimeArray "
<< "must be decorated with Block or BufferBlock.";
<< _.VkErrorID(4680)
<< spvLogStringForEnv(_.context()->target_env)
<< ", OpTypeStruct containing an OpTypeRuntimeArray "
<< "must be decorated with Block or BufferBlock.";
}
}
}
Expand Down
1 change: 0 additions & 1 deletion test/val/val_decoration_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5312,7 +5312,6 @@ TEST_F(ValidateDecorations, VulkanStructWithoutDecorationWithRuntimeArray) {
"must be decorated with Block or BufferBlock."));
}


TEST_F(ValidateDecorations, EmptyStructAtNonZeroOffsetGood) {
const std::string spirv = R"(
OpCapability Shader
Expand Down

0 comments on commit a544fe2

Please sign in to comment.