Skip to content

Commit 07f21b8

Browse files
Tutorial 21: use VK_IMAGE_FORMAT shader macro
1 parent 9e2ceeb commit 07f21b8

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

Tutorials/Tutorial21_RayTracing/assets/RayTrace.rgen

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,7 @@
22
#include "structures.fxh"
33
#include "RayUtils.fxh"
44

5-
#ifdef VULKAN
6-
# define VK_IMAGE_FORMAT_RGBA8 [[vk::image_format("rgba8")]]
7-
#else
8-
# define VK_IMAGE_FORMAT_RGBA8
9-
#endif
10-
11-
VK_IMAGE_FORMAT_RGBA8 RWTexture2D<float4> g_ColorBuffer;
5+
VK_IMAGE_FORMAT("rgba8") RWTexture2D<float4> g_ColorBuffer;
126

137
[shader("raygeneration")]
148
void main()

0 commit comments

Comments
 (0)