Skip to content

Commit

Permalink
remove asBuffer usages in samples and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
FalsePattern committed Mar 16, 2024
1 parent ef65958 commit 13cbd68
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ public static void main(String[] args) throws InterruptedException {
matrixWrite.dstArrayElement(0);
matrixWrite.descriptorCount(1);
matrixWrite.descriptorType(VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER);
matrixWrite.pBufferInfo(boiler.descriptors.bufferInfo(stack, matrixBuffer.asBuffer()));
matrixWrite.pBufferInfo(boiler.descriptors.bufferInfo(stack, matrixBuffer));

vkUpdateDescriptorSets(boiler.vkDevice(), descriptorWrites, null);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ public static void main(String[] args) throws InterruptedException {
uniformWrite.dstArrayElement(0);
uniformWrite.descriptorCount(1);
uniformWrite.descriptorType(VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER);
uniformWrite.pBufferInfo(boiler.descriptors.bufferInfo(stack, uniformBuffer.asBuffer()));
uniformWrite.pBufferInfo(boiler.descriptors.bufferInfo(stack, uniformBuffer));
var heightMapWrite = descriptorWrites.get(1);
heightMapWrite.sType$Default();
heightMapWrite.dstSet(descriptorSet);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public void testSimpleComputeShader() {
descriptorWrites.dstArrayElement(0);
descriptorWrites.descriptorCount(1);
descriptorWrites.descriptorType(VK_DESCRIPTOR_TYPE_STORAGE_BUFFER);
descriptorWrites.pBufferInfo(boiler.descriptors.bufferInfo(stack, buffer.asBuffer()));
descriptorWrites.pBufferInfo(boiler.descriptors.bufferInfo(stack, buffer));

vkUpdateDescriptorSets(boiler.vkDevice(), descriptorWrites, null);

Expand Down

0 comments on commit 13cbd68

Please sign in to comment.