Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- compileShaderQ :: Maybe String -> ShaderType -> String -> Maybe String -> String -> Q Exp
- compileShader :: MonadIO m => Maybe Loc -> Maybe String -> ShaderType -> String -> Maybe String -> String -> m ([ShadercWarning], Either [ShadercError] ByteString)
Documentation
:: Maybe String | Argument to pass to `--target-spv` |
-> ShaderType | Argument to specify between glsl/hlsl shader |
-> String | stage |
-> Maybe String | Argument to specify entry-point function name for hlsl |
-> String | glsl or hlsl shader code |
-> Q Exp | Spir-V bytecode |
Compile a GLSL/HLSL shader to SPIR-V using glslc (from the shaderc project)
Messages are converted to GHC warnings or errors depending on compilation success.
:: MonadIO m | |
=> Maybe Loc | Source location |
-> Maybe String | Argument to pass to `--target-spv` |
-> ShaderType | Argument to specify between glsl/hlsl shader |
-> String | stage |
-> Maybe String | Argument to specify entry-point function name for hlsl |
-> String | glsl or hlsl shader code |
-> m ([ShadercWarning], Either [ShadercError] ByteString) | Spir-V bytecode with warnings or errors |
Compile a GLSL/HLSL shader to spir-v using glslc