Created
April 5, 2021 15:26
-
-
Save legumbre/0e66052579e59c9e507f3141c26ec91a to your computer and use it in GitHub Desktop.
SPIRVCross | GLSL specialization constants -> MSL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#version 310 es | |
precision mediump float; | |
layout (constant_id = 0) const bool kSomeFlag = true; | |
layout(location = 0) out vec4 FragColor; | |
void main() | |
{ | |
if (kSomeFlag) | |
FragColor = vec4(1.0); | |
else | |
FragColor = vec4(0.0); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment