Skip to content

Commit

Permalink
Build MojoShader with MSL support
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSpydog committed Nov 4, 2024
1 parent c2abcfd commit 2850b2e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ add_definitions(
-DSUPPORT_PROFILE_ARB1_NV=0
-DSUPPORT_PROFILE_BYTECODE=0
-DSUPPORT_PROFILE_D3D=0
-DSUPPORT_PROFILE_METAL=0
)
if(TRACING_SUPPORT)
add_definitions(-DFNA3D_TRACING)
Expand Down Expand Up @@ -98,6 +97,12 @@ if(EMSCRIPTEN)
)
endif()

if(NOT APPLE)
add_definitions(
-DSUPPORT_PROFILE_METAL=0
)
endif()

# Source lists
add_library(FNA3D
# Public Headers
Expand Down Expand Up @@ -135,6 +140,7 @@ add_library(mojoshader STATIC
MojoShader/profiles/mojoshader_profile_glsl.c
MojoShader/profiles/mojoshader_profile_hlsl.c
MojoShader/profiles/mojoshader_profile_spirv.c
MojoShader/profiles/mojoshader_profile_metal.c
)
if(TRACING_SUPPORT)
add_executable(fna3d_replay replay/replay.c)
Expand Down

0 comments on commit 2850b2e

Please sign in to comment.