Dropped VKGUIDE, switching to "How to Vulkan in 2026" by SaschaWillems

This commit is contained in:
Alexandre 2026-07-26 22:30:40 +02:00
parent 49963f3425
commit 50c0e866cf
2 changed files with 7 additions and 2 deletions

View File

@ -57,7 +57,7 @@ function(addGlslShader SOURCE OUTPUT_DIR)
COMMAND ${CMAKE_COMMAND} -E make_directory ${OUTPUT_DIR}
COMMAND glslang::validator
-V
--target-env vulkan1.3 # Change if needed
--target-env vulkan1.4 # Change if needed
-o ${SPV_FILE}
${SOURCE}
DEPENDS ${SOURCE}
@ -76,7 +76,7 @@ function(addSlangShader SOURCES ENTRY_POINTS OUTPUT_DIR)
COMMAND ${SLANGC_EXECUTABLE}
${SOURCES}
-target spirv
-profile spirv_1_4+spvRayQueryKHR # Change if needed
-profile spirv_1_6+spvRayQueryKHR # Change if needed
-emit-spirv-directly
-fvk-use-entrypoint-name
${ENTRY_POINTS}

View File

@ -103,6 +103,10 @@ class Engine {
std::vector<ComputeEffect> backgroundEffects;
int currentBackgroundEffect{0}; // Already initialized
// Triangle Pipeline
VkPipelineLayout _trianglePipelineLayout;
VkPipeline _trianglePipeline;
void init();
@ -125,6 +129,7 @@ class Engine {
void initSyncStructures();
void initDescriptors();
void initPipelines();
void initTrianglePipeline();
void initBackgroundPipelines();
void initImgui();