C# Класс Axiom.RenderSystems.OpenGL.GLSL.GLSLGpuProgram

GLSL low level compiled shader object - this class is used to get at the linked program object and provide an interface for GLRenderSystem calls. GLSL does not provide access to the low level code of the shader so this class is really just a dummy place holder. GLSL uses a program object to represent the active vertex and fragment programs used but Axiom materials maintain seperate instances of the active vertex and fragment programs which creates a small problem for GLSL integration. The GLSLGpuProgram class provides the interface between the GLSLLinkProgramManager , GLRenderSystem, and the active GLSLProgram instances.
Наследование: GLGpuProgram
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
fragmentShaderCount int
geometryShaderCount int
glslProgram GLSLProgram
vertexShaderCount int

Открытые методы

Метод Описание
Bind ( ) : void
BindProgramParameters ( GpuProgramParameters parms, GpuProgramParameters mask ) : void
BindProgramPassIterationParameters ( GpuProgramParameters parms ) : void
GLSLGpuProgram ( GLSLProgram parent ) : System
Unbind ( ) : void

Защищенные методы

Метод Описание
LoadFromSource ( ) : void
load ( ) : void
unload ( ) : void

Приватные методы

Метод Описание
AttributeIndex ( VertexElementSemantic semantic, uint index ) : uint
IsAttributeValid ( VertexElementSemantic semantic, uint index ) : bool

Описание методов

Bind() публичный Метод

public Bind ( ) : void
Результат void

BindProgramParameters() публичный Метод

public BindProgramParameters ( GpuProgramParameters parms, GpuProgramParameters mask ) : void
parms Axiom.Graphics.GpuProgramParameters
mask Axiom.Graphics.GpuProgramParameters
Результат void

BindProgramPassIterationParameters() публичный Метод

public BindProgramPassIterationParameters ( GpuProgramParameters parms ) : void
parms Axiom.Graphics.GpuProgramParameters
Результат void

GLSLGpuProgram() публичный Метод

public GLSLGpuProgram ( GLSLProgram parent ) : System
parent GLSLProgram
Результат System

LoadFromSource() защищенный Метод

protected LoadFromSource ( ) : void
Результат void

Unbind() публичный Метод

public Unbind ( ) : void
Результат void

load() защищенный Метод

protected load ( ) : void
Результат void

unload() защищенный Метод

protected unload ( ) : void
Результат void

Описание свойств

fragmentShaderCount защищенное статическое свойство

Keep track of the number of fragment shaders created.
protected static int fragmentShaderCount
Результат int

geometryShaderCount защищенное статическое свойство

Keep track of the number of geometry shaders created.
protected static int geometryShaderCount
Результат int

glslProgram защищенное свойство

GL Handle for the shader object.
protected GLSLProgram,Axiom.RenderSystems.OpenGL.GLSL glslProgram
Результат GLSLProgram

vertexShaderCount защищенное статическое свойство

Keep track of the number of vertex shaders created.
protected static int vertexShaderCount
Результат int