removing starting_slot argument

This commit is contained in:
2025-02-22 00:27:47 +01:00
parent b5abfe1589
commit 3a598ab887
12 changed files with 39 additions and 47 deletions

View File

@@ -298,7 +298,7 @@ void TestBufferComputeWrite()
PulseComputePass pass = PulseBeginComputePass(cmd);
TEST_ASSERT_NOT_EQUAL_MESSAGE(pass, PULSE_NULL_HANDLE, PulseVerbaliseErrorType(PulseGetLastErrorType()));
PulseBindStorageBuffers(pass, 0, &buffer, 1);
PulseBindStorageBuffers(pass, &buffer, 1);
PulseBindComputePipeline(pass, pipeline);
PulseDispatchComputations(pass, 32, 32, 1);
PulseEndComputePass(pass);
@@ -367,8 +367,8 @@ void TestBufferComputeCopy()
PulseComputePass pass = PulseBeginComputePass(cmd);
TEST_ASSERT_NOT_EQUAL_MESSAGE(pass, PULSE_NULL_HANDLE, PulseVerbaliseErrorType(PulseGetLastErrorType()));
PulseBindStorageBuffers(pass, 0, &read_buffer, 1);
PulseBindStorageBuffers(pass, 0, &write_buffer, 1);
PulseBindStorageBuffers(pass, &read_buffer, 1);
PulseBindStorageBuffers(pass, &write_buffer, 1);
PulseBindComputePipeline(pass, pipeline);
PulseDispatchComputations(pass, 32, 32, 1);
PulseEndComputePass(pass);

View File

@@ -76,8 +76,8 @@ void TestPipelineReadOnlyBindings()
PulseComputePass pass = PulseBeginComputePass(cmd);
TEST_ASSERT_NOT_EQUAL_MESSAGE(pass, PULSE_NULL_HANDLE, PulseVerbaliseErrorType(PulseGetLastErrorType()));
PulseBindStorageBuffers(pass, 0, &buffer, 1);
PulseBindStorageImages(pass, 1, &image, 1);
PulseBindStorageImages(pass, &image, 1);
PulseBindStorageBuffers(pass, &buffer, 1);
PulseBindComputePipeline(pass, pipeline);
PulseDispatchComputations(pass, 32, 32, 1);
PulseEndComputePass(pass);
@@ -132,8 +132,8 @@ void TestPipelineWriteOnlyBindings()
PulseComputePass pass = PulseBeginComputePass(cmd);
TEST_ASSERT_NOT_EQUAL_MESSAGE(pass, PULSE_NULL_HANDLE, PulseVerbaliseErrorType(PulseGetLastErrorType()));
PulseBindStorageBuffers(pass, 0, &buffer, 1);
PulseBindStorageImages(pass, 1, &image, 1);
PulseBindStorageImages(pass, &image, 1);
PulseBindStorageBuffers(pass, &buffer, 1);
PulseBindComputePipeline(pass, pipeline);
PulseDispatchComputations(pass, 32, 32, 1);
PulseEndComputePass(pass);
@@ -196,10 +196,10 @@ void TestPipelineReadWriteBindings()
PulseComputePass pass = PulseBeginComputePass(cmd);
TEST_ASSERT_NOT_EQUAL_MESSAGE(pass, PULSE_NULL_HANDLE, PulseVerbaliseErrorType(PulseGetLastErrorType()));
PulseBindStorageBuffers(pass, 0, &read_buffer, 1);
PulseBindStorageBuffers(pass, 0, &write_buffer, 1);
PulseBindStorageImages(pass, 1, &read_image, 1);
PulseBindStorageImages(pass, 1, &write_image, 1);
PulseBindStorageImages(pass, &read_image, 1);
PulseBindStorageImages(pass, &write_image, 1);
PulseBindStorageBuffers(pass, &read_buffer, 1);
PulseBindStorageBuffers(pass, &write_buffer, 1);
PulseBindComputePipeline(pass, pipeline);
PulseDispatchComputations(pass, 32, 32, 1);
PulseEndComputePass(pass);

View File

@@ -14,8 +14,8 @@ struct SSBO
external
{
[set(0), binding(0)] read_ssbo: storage[SSBO, readonly],
[set(0), binding(1)] read_texture: texture2D[f32, readonly, rgba8],
[set(0), binding(0)] read_texture: texture2D[f32, readonly, rgba8],
[set(0), binding(1)] read_ssbo: storage[SSBO, readonly],
}
[entry(compute)]

View File

@@ -14,10 +14,10 @@ struct SSBO
external
{
[set(0), binding(0)] read_ssbo: storage[SSBO, readonly],
[set(0), binding(1)] read_texture: texture2D[f32, readonly, rgba8],
[set(1), binding(0)] write_ssbo: storage[SSBO, writeonly],
[set(1), binding(1)] write_texture: texture2D[f32, readonly, rgba8],
[set(0), binding(0)] read_texture: texture2D[f32, readonly, rgba8],
[set(0), binding(1)] read_ssbo: storage[SSBO, readonly],
[set(1), binding(0)] write_texture: texture2D[f32, readonly, rgba8],
[set(1), binding(1)] write_ssbo: storage[SSBO, writeonly],
}
[entry(compute)]

View File

@@ -14,8 +14,8 @@ struct SSBO
external
{
[set(1), binding(0)] write_ssbo: storage[SSBO],
[set(1), binding(1)] write_texture: texture2D[f32, readonly, rgba8],
[set(1), binding(0)] write_texture: texture2D[f32, readonly, rgba8],
[set(1), binding(1)] write_ssbo: storage[SSBO],
}
[entry(compute)]