DarkBASIC Professional Help File

DX11 SET VERTEX SHADER

Sets the vertex shader and vertex layout of the given shader technique.
Can be changed during runtime.

Syntax

    DX11 SET VERTEX SHADER shaderTechnique, vertLayout, vertexShader

Parameters

    shaderTechnique

> Dword
> The shader technique to set the vertex shader / vertex layout of.

    vertLayout

> Dword
> The vertex layout to set for the given shader technique. Should match the expected vertex input format of the associated vertex shader.

    vertexShader

> Dword
> The vertex shader to set for the given shader technique.

Returns

This function does not return a value.

See also

SHADERTECHNIQUE Functions Menu
DX11 Function Categories