Skip to main content

shadertype

Specifies the type of shader.

shadertype ("value")

Parameters​

value is one of:

ValueDescription
EffectEffect shader
VertexVertex shader
PixelPixel / fragment shader
GeometryGeometry shader
HullHull (tessellation control) shader
DomainDomain (tessellation evaluation) shader
ComputeCompute shader
LibraryShader library
MeshMesh shader
AmplificationAmplification shader (task amplification stage)
TextureTexture shader
RootSignatureRoot signature resource (Direct3D 12 root signature)

Applies To​

Project and file configurations.

Availability​

Premake 5.0.0-alpha14 or later for Visual Studio.

Examples​

shadertype "Vertex"