struct GpuProgramCreateInformation

Inherits: IReflectable

Descriptor structure used for initialization of a GpuProgram.

Public

Methods

staticGetRttiStatic

static RTTIType *GetRttiStatic()

GetRtti

RTTIType *GetRtti() const override

Returns an interface you can use to access class' Run Time Type Information.

Fields

Name

String Name

Name of the program.

Used primarily for debugging.

Source

String Source

Source code to compile the program from.

EntryPoint

String EntryPoint

Name of the entry point function, for example "main".

Language

String Language

Language the source is written in, for example "hlsl" or "glsl".

Type

Type of the program, for example vertex or fragment.

RequiresAdjacency

bool RequiresAdjacency

If true then adjacency information will be provided when rendering.

Bytecode

SPtr<GpuProgramBytecode> Bytecode

Optional intermediate version of the GPU program.

Can significantly speed up GPU program compilation/creation when supported by the render backend. Call render::GpuProgram::CompileBytecode to generate it.