VertexData is a class used for specify input streams for GPU rendering pipeline, a VertexData will be composed by several streams, every stream will contain a VertexStreamAttribute and the binding VertexBuffer.
More...
Inherits Ref.
|
|
unsigned int | _ID |
| | object id, ScriptSupport need public _ID
|
| |
|
int | _luaID |
| | Lua reference id.
|
| |
|
void * | _scriptObject |
| | scriptObject, support for swift
|
| |
VertexData is a class used for specify input streams for GPU rendering pipeline, a VertexData will be composed by several streams, every stream will contain a VertexStreamAttribute and the binding VertexBuffer.
Streams will be identified by semantic.
Set a stream to VertexData,given that stream is identified by semantic, so if the semantic is not specified before, it will add a stream, or it will override the old one.
- Parameters
-
| buffer | The binding buffer of the stream. |
| stream | The binding vertex attribute, its member semantic will be used as the identifier. |
| local setStream |
( |
local |
buffer, |
|
|
local |
stream |
|
) |
| |
Set a stream to VertexData,given that stream is identified by semantic, so if the semantic is not specified before, it will add a stream, or it will override the old one.
- Parameters
-
| buffer | The binding buffer of the stream. |
| stream | The binding vertex attribute, its member semantic will be used as the identifier. |
| void removeStream |
( |
int |
semantic | ) |
|
Remove the given streams.
- Parameters
-
| semantic | The semantic of the stream. |
| local removeStream |
( |
local |
semantic | ) |
|
Remove the given streams.
- Parameters
-
| semantic | The semantic of the stream. |
Get the attribute of stream, const version.
- Parameters
-
| semantic | The semantic of the stream. |
| local getStreamAttribute |
( |
local |
semantic | ) |
|
Get the attribute of stream, const version.
- Parameters
-
| semantic | The semantic of the stream. |
Get the attribute of stream.
- Parameters
-
| semantic | The semantic of the stream. |
| local getStreamAttribute |
( |
local |
semantic | ) |
|
Get the attribute of stream.
- Parameters
-
| semantic | The semantic of the stream. |
Get the binded buffer of the stream.
- Parameters
-
| semantic | The semantic of the stream. |
| local getStreamBuffer |
( |
local |
semantic | ) |
|
Get the binded buffer of the stream.
- Parameters
-
| semantic | The semantic of the stream. |
The documentation for this class was generated from the following file: