adding D3D11 unit tests, removing raw HLSL support

This commit is contained in:
2025-09-12 00:54:15 +02:00
parent 6dd129cf35
commit 62beb8d316
27 changed files with 381 additions and 106 deletions

View File

@@ -21,6 +21,10 @@ void TestPipelineSetup()
const uint8_t shader_bytecode[] = {
#include "Shaders/Vulkan-OpenGL/Simple.comp.glsl.h"
};
#elif defined(D3D11_ENABLED)
const uint8_t shader_bytecode[] = {
#include "Shaders/D3D11/Simple.cso.h"
};
#endif
PulseComputePipeline pipeline;
@@ -66,6 +70,10 @@ void TestPipelineReadOnlyBindings()
const uint8_t shader_bytecode[] = {
#include "Shaders/Vulkan-OpenGL/ReadOnlyBindings.comp.glsl.h"
};
#elif defined(D3D11_ENABLED)
const uint8_t shader_bytecode[] = {
#include "Shaders/D3D11/ReadOnlyBindings.cso.h"
};
#endif
PulseBufferCreateInfo buffer_create_info = { 0 };
@@ -131,6 +139,10 @@ void TestPipelineWriteOnlyBindings()
const uint8_t shader_bytecode[] = {
#include "Shaders/Vulkan-OpenGL/WriteOnlyBindings.comp.glsl.h"
};
#elif defined(D3D11_ENABLED)
const uint8_t shader_bytecode[] = {
#include "Shaders/D3D11/WriteOnlyBindings.cso.h"
};
#endif
PulseBufferCreateInfo buffer_create_info = { 0 };
@@ -196,6 +208,10 @@ void TestPipelineReadWriteBindings()
const uint8_t shader_bytecode[] = {
#include "Shaders/Vulkan-OpenGL/ReadWriteBindings.comp.glsl.h"
};
#elif defined(D3D11_ENABLED)
const uint8_t shader_bytecode[] = {
#include "Shaders/D3D11/ReadWriteBindings.cso.h"
};
#endif
PulseBufferCreateInfo buffer_create_info = { 0 };