fixing opengl

This commit is contained in:
2025-04-08 16:53:23 +02:00
parent c1411bba5d
commit 221d1a82bf
7 changed files with 66 additions and 14 deletions

View File

@@ -39,6 +39,7 @@ void TestImageCreation()
* This test may crash some Nouveau NVK drivers (wtf ???).
* It seems to be comming exclusively from 3D read-only images
*/
#ifndef VULKAN_ENABLED
{
PulseImageCreateInfo image_create_info = { 0 };
image_create_info.type = PULSE_IMAGE_TYPE_3D;
@@ -51,7 +52,7 @@ void TestImageCreation()
TEST_ASSERT_NOT_EQUAL_MESSAGE(image, PULSE_NULL_HANDLE, PulseVerbaliseErrorType(PulseGetLastErrorType()));
PulseDestroyImage(device, image);
}
#endif
{
PulseImageCreateInfo image_create_info = { 0 };

View File

@@ -22,7 +22,7 @@ external
[set(1)]
external
{
[binding(0)] write_texture: texture2D[f32, rgba8],
[binding(0)] write_texture: texture2D[f32, writeonly, rgba8],
[binding(1)] write_ssbo: storage[SSBO, writeonly],
}

View File

@@ -12,10 +12,10 @@ struct SSBO
data: dyn_array[u32]
}
[set(0)]
[set(1)]
external
{
[binding(0)] write_texture: texture2D[f32, readwrite, rgba8],
[binding(0)] write_texture: texture2D[f32, writeonly, rgba8],
[binding(1)] write_ssbo: storage[SSBO],
}