move unittests behind version flag
This commit is contained in:
parent
589b2191ba
commit
b3639d9c88
2
test.sh
2
test.sh
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
glslc -fshader-stage=comp --target-env=vulkan1.2 convert.comp.glsl -oconvert.comp.spv
|
glslc -fshader-stage=comp --target-env=vulkan1.2 convert.comp.glsl -oconvert.comp.spv
|
||||||
|
|
||||||
ldc2 vulkan.d vulkan_funcs.d vulkan_logging.d vulkan_util.d -L-lvulkan --unittest -J./ -verrors=30
|
ldc2 vulkan.d vulkan_funcs.d vulkan_logging.d vulkan_util.d -d-version=VULKAN_RENDERER_TEST -L-lvulkan --unittest -J./ -verrors=30
|
||||||
|
|
||||||
rm convert.comp.spv
|
rm convert.comp.spv
|
||||||
rm vulkan.o
|
rm vulkan.o
|
||||||
|
|||||||
2
vulkan.d
2
vulkan.d
@ -3217,7 +3217,7 @@ Init(PlatformHandles platform_handles, u64 permanent_mem, u64 frame_mem)
|
|||||||
return vk;
|
return vk;
|
||||||
}
|
}
|
||||||
|
|
||||||
unittest
|
version(VULKAN_RENDERER_TEST) unittest
|
||||||
{
|
{
|
||||||
PlatformHandles handles;
|
PlatformHandles handles;
|
||||||
Vulkan vk = Init(handles, 10*1000*1000, 10*1000*1000);
|
Vulkan vk = Init(handles, 10*1000*1000, 10*1000*1000);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user