From 9a95c33279cba9be6e34983c9a2bb1e6f300c2a3 Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Fri, 22 Jan 2016 12:04:11 +0100 Subject: Add QD3D12Window, a HLSL qmake rule and 8 examples Change-Id: Ida7852af10e0236a5d80e95a0876fff6276b410c Reviewed-by: Andy Nichols --- examples/hellogpumipmap/hellogpumipmap.pro | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 examples/hellogpumipmap/hellogpumipmap.pro (limited to 'examples/hellogpumipmap/hellogpumipmap.pro') diff --git a/examples/hellogpumipmap/hellogpumipmap.pro b/examples/hellogpumipmap/hellogpumipmap.pro new file mode 100644 index 0000000..286784e --- /dev/null +++ b/examples/hellogpumipmap/hellogpumipmap.pro @@ -0,0 +1,29 @@ +TEMPLATE = app +QT += d3d12window widgets + +SOURCES = main.cpp window.cpp +HEADERS = window.h +RESOURCES = hellogpumipmap.qrc + +LIBS = -ld3d12 + +VSPS = shader.hlsl +CS = mipmapgen.hlsl + +vshader.input = VSPS +vshader.header = shader_vs.h +vshader.entry = VS_Texture +vshader.type = vs_5_0 + +pshader.input = VSPS +pshader.header = shader_ps.h +pshader.entry = PS_Texture +pshader.type = ps_5_0 + +cshader.input = CS +cshader.header = shader_cs.h +cshader.entry = CS_Generate4MipMaps +cshader.type = cs_5_0 + +HLSL_SHADERS = vshader pshader cshader +load(hlsl) -- cgit v1.2.3