Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- comp :: QuasiQuoter
- frag :: QuasiQuoter
- geom :: QuasiQuoter
- tesc :: QuasiQuoter
- tese :: QuasiQuoter
- vert :: QuasiQuoter
- type GLSLError = String
- type GLSLWarning = String
- compileShaderQ :: String -> String -> Q Exp
- compileShader :: MonadIO m => Maybe Loc -> String -> String -> m ([GLSLWarning], Either [GLSLError] ByteString)
- processValidatorMessages :: ByteString -> ([GLSLWarning], [GLSLError])
Documentation
comp :: QuasiQuoter Source #
QuasiQuoter for creating a compute shader
frag :: QuasiQuoter Source #
QuasiQuoter for creating a fragment shader
geom :: QuasiQuoter Source #
QuasiQuoter for creating a geometry shader
tesc :: QuasiQuoter Source #
QuasiQuoter for creating a tessellation control shader
tese :: QuasiQuoter Source #
QuasiQuoter for creating a tessellation evaluation shader
vert :: QuasiQuoter Source #
QuasiQuoter for creating a vertex shader
type GLSLWarning = String Source #
Compile a glsl shader to spir-v using glslangValidator.
Messages are converted to GHC warnings or errors depending on compilation success.
:: MonadIO m | |
=> Maybe Loc | Source location |
-> String | stage |
-> String | glsl code |
-> m ([GLSLWarning], Either [GLSLError] ByteString) | Spir-V bytecode with warnings or errors |
Compile a glsl shader to spir-v using glslangValidator
processValidatorMessages :: ByteString -> ([GLSLWarning], [GLSLError]) Source #