Skip to content

Commit

Permalink
Use SHADER_* source properties over VS_SHADER_*
Browse files Browse the repository at this point in the history
  • Loading branch information
andrejnau committed Jan 24, 2024
1 parent 9946776 commit 38bc713
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 20 deletions.
34 changes: 15 additions & 19 deletions src/Apps/SponzaPbr/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -95,25 +95,21 @@ set(lib_shaders
${shaders_path}/RayTracingAO.hlsl
)

set_property(SOURCE ${pixel_shaders} PROPERTY VS_SHADER_ENTRYPOINT main)
set_property(SOURCE ${pixel_shaders} PROPERTY VS_SHADER_TYPE Pixel)
set_property(SOURCE ${pixel_shaders} PROPERTY VS_SHADER_MODEL 6.0)
set_property(SOURCE ${pixel_shaders} PROPERTY VS_SHADER_FLAGS "/Zi /auto-binding-space 0")

set_property(SOURCE ${vertex_shaders} PROPERTY VS_SHADER_ENTRYPOINT main)
set_property(SOURCE ${vertex_shaders} PROPERTY VS_SHADER_TYPE Vertex)
set_property(SOURCE ${vertex_shaders} PROPERTY VS_SHADER_MODEL 6.0)
set_property(SOURCE ${vertex_shaders} PROPERTY VS_SHADER_FLAGS "/Zi /auto-binding-space 0")

set_property(SOURCE ${compute_shaders} PROPERTY VS_SHADER_ENTRYPOINT main)
set_property(SOURCE ${compute_shaders} PROPERTY VS_SHADER_TYPE Compute)
set_property(SOURCE ${compute_shaders} PROPERTY VS_SHADER_MODEL 6.0)
set_property(SOURCE ${compute_shaders} PROPERTY VS_SHADER_FLAGS "/Zi /auto-binding-space 0")

set_property(SOURCE ${lib_shaders} PROPERTY VS_SHADER_ENTRYPOINT " ")
set_property(SOURCE ${lib_shaders} PROPERTY VS_SHADER_TYPE Library)
set_property(SOURCE ${lib_shaders} PROPERTY VS_SHADER_MODEL 6.3)
set_property(SOURCE ${lib_shaders} PROPERTY VS_SHADER_FLAGS "/Zi /auto-binding-space 0")
set_property(SOURCE ${pixel_shaders} PROPERTY SHADER_ENTRYPOINT main)
set_property(SOURCE ${pixel_shaders} PROPERTY SHADER_TYPE Pixel)
set_property(SOURCE ${pixel_shaders} PROPERTY SHADER_MODEL 6.0)

set_property(SOURCE ${vertex_shaders} PROPERTY SHADER_ENTRYPOINT main)
set_property(SOURCE ${vertex_shaders} PROPERTY SHADER_TYPE Vertex)
set_property(SOURCE ${vertex_shaders} PROPERTY SHADER_MODEL 6.0)

set_property(SOURCE ${compute_shaders} PROPERTY SHADER_ENTRYPOINT main)
set_property(SOURCE ${compute_shaders} PROPERTY SHADER_TYPE Compute)
set_property(SOURCE ${compute_shaders} PROPERTY SHADER_MODEL 6.0)

set_property(SOURCE ${lib_shaders} PROPERTY SHADER_ENTRYPOINT " ")
set_property(SOURCE ${lib_shaders} PROPERTY SHADER_TYPE Library)
set_property(SOURCE ${lib_shaders} PROPERTY SHADER_MODEL 6.3)

set(shaders_files ${pixel_shaders} ${vertex_shaders} ${compute_shaders} ${lib_shaders})

Expand Down

0 comments on commit 38bc713

Please sign in to comment.