vulkan-utils-0.1.2.1: Utils for the vulkan package
Safe HaskellNone
LanguageHaskell2010

Vulkan.Utils.ShaderQQ

Synopsis

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

compileShaderQ Source #

Arguments

:: String

stage

-> String

glsl code

-> Q Exp

Spir-V bytecode

Compile a glsl shader to spir-v using glslangValidator.

Messages are converted to GHC warnings or errors depending on compilation success.

compileShader Source #

Arguments

:: 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