mirror of
https://github.com/Kbz-8/Pulse.git
synced 2026-01-11 07:23:35 +00:00
removing starting_slot argument
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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)]
|
||||
|
||||
@@ -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)]
|
||||
|
||||
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user