Skip to content

Commit

Permalink
cgpu/gi: remove NDEBUG shader restriction for macOS
Browse files Browse the repository at this point in the history
Although it may still apply to MoltenVK, it does not for lavapipe.
  • Loading branch information
pablode committed Aug 3, 2024
1 parent af4ce6c commit 14ce229
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions src/cgpu/impl/Cgpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -666,12 +666,10 @@ namespace gtl
idevice->features.shaderClock = true;
}

#ifndef __APPLE__
if (enableOptionalExtension(VK_KHR_SHADER_NON_SEMANTIC_INFO_EXTENSION_NAME))
{
idevice->features.debugPrintf = true;
}
#endif
#endif

if (enableOptionalExtension(VK_NV_RAY_TRACING_INVOCATION_REORDER_EXTENSION_NAME))
Expand Down
2 changes: 1 addition & 1 deletion src/gi/impl/GlslShaderGen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ namespace gtl

void _sgGenerateCommonDefines(GiGlslStitcher& stitcher, const GiGlslShaderGen::CommonShaderParams& params)
{
#if defined(NDEBUG) || defined(__APPLE__)
#if defined(NDEBUG)
stitcher.appendDefine("NDEBUG");
#endif

Expand Down

0 comments on commit 14ce229

Please sign in to comment.