Skip to content

Commit d48b79c

Browse files
Spelling
1 parent a918cde commit d48b79c

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

source/opt/instruction.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ bool Instruction::IsVulkanStorageBuffer() const {
434434
return false;
435435
}
436436

437-
bool Instruction::IsVulkanStorageBufferNonWriteable() const {
437+
bool Instruction::IsVulkanStorageBufferNonWritable() const {
438438
if (!IsVulkanStorageBuffer()) {
439439
return false;
440440
}
@@ -526,7 +526,7 @@ Instruction::ReadOnlyShaderResult Instruction::IsReadOnlyPointerShaders()
526526
if (!type_def->IsVulkanStorageBuffer()) {
527527
return ReadOnlyShaderResult::kTrue;
528528
}
529-
if (type_def->IsVulkanStorageBufferNonWriteable()) {
529+
if (type_def->IsVulkanStorageBufferNonWritable()) {
530530
return ReadOnlyShaderResult::kMayHaveAliasingBinding;
531531
}
532532
break;

source/opt/instruction.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -482,8 +482,8 @@ class Instruction : public utils::IntrusiveNodeBase<Instruction> {
482482
bool IsVulkanStorageBuffer() const;
483483

484484
// Returns true if the instruction defines a pointer type that points to a
485-
// buffer that is decorated with NonWriteable.
486-
bool IsVulkanStorageBufferNonWriteable() const;
485+
// buffer that is decorated with NonWritable.
486+
bool IsVulkanStorageBufferNonWritable() const;
487487

488488
// Returns true if the instruction defines a variable in StorageBuffer or
489489
// Uniform storage class with a pointer type that points to a storage buffer.

test/opt/instruction_test.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ TEST_F(DescriptorTypeTest, StorageImage) {
347347
EXPECT_FALSE(type->IsVulkanStorageTexelBuffer());
348348
EXPECT_FALSE(type->IsVulkanStorageBuffer());
349349
EXPECT_FALSE(type->IsVulkanUniformBuffer());
350-
EXPECT_FALSE(type->IsVulkanStorageBufferNonWriteable());
350+
EXPECT_FALSE(type->IsVulkanStorageBufferNonWritable());
351351

352352
Instruction* variable = context->get_def_use_mgr()->GetDef(3);
353353
EXPECT_FALSE(variable->IsReadOnlyPointer());
@@ -388,7 +388,7 @@ TEST_F(DescriptorTypeTest, SampledImage) {
388388
EXPECT_FALSE(type->IsVulkanStorageTexelBuffer());
389389
EXPECT_FALSE(type->IsVulkanStorageBuffer());
390390
EXPECT_FALSE(type->IsVulkanUniformBuffer());
391-
EXPECT_FALSE(type->IsVulkanStorageBufferNonWriteable());
391+
EXPECT_FALSE(type->IsVulkanStorageBufferNonWritable());
392392

393393
Instruction* variable = context->get_def_use_mgr()->GetDef(3);
394394
EXPECT_TRUE(variable->IsReadOnlyPointer());
@@ -429,7 +429,7 @@ TEST_F(DescriptorTypeTest, StorageTexelBuffer) {
429429
EXPECT_TRUE(type->IsVulkanStorageTexelBuffer());
430430
EXPECT_FALSE(type->IsVulkanStorageBuffer());
431431
EXPECT_FALSE(type->IsVulkanUniformBuffer());
432-
EXPECT_FALSE(type->IsVulkanStorageBufferNonWriteable());
432+
EXPECT_FALSE(type->IsVulkanStorageBufferNonWritable());
433433

434434
Instruction* variable = context->get_def_use_mgr()->GetDef(3);
435435
EXPECT_FALSE(variable->IsReadOnlyPointer());
@@ -473,7 +473,7 @@ TEST_F(DescriptorTypeTest, StorageBuffer) {
473473
EXPECT_FALSE(type->IsVulkanStorageTexelBuffer());
474474
EXPECT_TRUE(type->IsVulkanStorageBuffer());
475475
EXPECT_FALSE(type->IsVulkanUniformBuffer());
476-
EXPECT_FALSE(type->IsVulkanStorageBufferNonWriteable());
476+
EXPECT_FALSE(type->IsVulkanStorageBufferNonWritable());
477477

478478
Instruction* variable = context->get_def_use_mgr()->GetDef(3);
479479
EXPECT_FALSE(variable->IsReadOnlyPointer());
@@ -523,7 +523,7 @@ TEST_F(DescriptorTypeTest, ReadOnlyStorageBuffer) {
523523
EXPECT_FALSE(type->IsVulkanStorageTexelBuffer());
524524
EXPECT_TRUE(type->IsVulkanStorageBuffer());
525525
EXPECT_FALSE(type->IsVulkanUniformBuffer());
526-
EXPECT_TRUE(type->IsVulkanStorageBufferNonWriteable());
526+
EXPECT_TRUE(type->IsVulkanStorageBufferNonWritable());
527527

528528
Instruction* variable = context->get_def_use_mgr()->GetDef(3);
529529
EXPECT_TRUE(variable->IsReadOnlyPointer());
@@ -608,7 +608,7 @@ TEST_F(DescriptorTypeTest, UniformBuffer) {
608608
EXPECT_FALSE(type->IsVulkanStorageTexelBuffer());
609609
EXPECT_FALSE(type->IsVulkanStorageBuffer());
610610
EXPECT_TRUE(type->IsVulkanUniformBuffer());
611-
EXPECT_FALSE(type->IsVulkanStorageBufferNonWriteable());
611+
EXPECT_FALSE(type->IsVulkanStorageBufferNonWritable());
612612

613613
Instruction* variable = context->get_def_use_mgr()->GetDef(3);
614614
EXPECT_TRUE(variable->IsReadOnlyPointer());

0 commit comments

Comments
 (0)