public interface RenderDataStorePod
You can use this class to copy data to the shader.
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
void |
createPod(String typeName,
String name,
ByteBuffer data) |
Creates a POD object based on the specified unique name and the initial data.
|
void |
destroyPod(String typeName,
String name) |
Destroys data in the POD object.
|
byte[] |
get(String name) |
Obtains data from a specified POD object.
|
void |
release() |
Releases the POD storage.
|
void |
set(String name,
ByteBuffer data) |
Sets data to be stored in a specified POD object.
|
void createPod(String typeName, String name, ByteBuffer data)
If a POD object with the same name has been created, this method will update its data.
typeName - Indicates the POD type name, for example, PostProcess.name - Indicates the unique POD object name.data - Indicates the data to be stored.void destroyPod(String typeName, String name)
typeName - Indicates the POD type name, for example, PostProcess.name - Indicates the unique POD object name.void set(String name, ByteBuffer data)
name - Indicates the POD object name.data - Indicates the data to be stored.byte[] get(String name)
name - Indicates the POD object name.void release()