DarkBASIC Professional Help File

DX11 GET DEFAULT PIXEL SHADER

Retrieves a simple default pixel shader loaded by the engine at startup.
For most any purpose you will want to write your own shaders instead, but the default ones lets you
get simple, single-texture models on the screen for quick mockups.
The default pixel shader expects the following input structure (which is also the output structure of the default vertex shader):

struct vs_in {
float4 pos : SV_POSITION;
float4 colour : COLOR0;
float2 texcoord : TEXCOORD;
}

.

Syntax

    Return Dword = DX11 GET DEFAULT PIXEL SHADER()

Parameters

    This function does not take any parameters.

Returns

The default pixel shader.

See also

PIXELSHADER Functions Menu
DX11 Function Categories