nn::gr::CTR::ShaderLite::SetupBinary Member Function
void SetupBinary(
const void * shader_binary,
const s32 vtx_shader_index,
const s32 geo_shader_index,
bit32 * buffer
);
| Name | Description | |
|---|---|---|
| in | shader_binary |
The shader binary linked by ctr_VertexShaderLinker32.exe. |
| in | vtx_shader_index |
The index of the enabled vertex shader. |
| in | geo_shader_index |
The index of the enabled geometry shader. |
| in | buffer |
Required working buffer. You must first call GetRequiredBufferSize to get the size and pass an allocated buffer. |
Sets up information used for generating commands based on the shader binary. Note: The binary is not copied. Do not destroy the binary until the command is generated. An ASSERT results if the specified index is not a valid shader. For more information about the index to be specified, see the MAP file generated at link time by ctr_VertexShaderLinker32.exe. Geometry shaders can be disabled by specifying -1 for geo_shader_index.
CONFIDENTIAL