nn::gd::CTR::Memory::ClearTexture2DResource Member Functionstatic nnResult ClearTexture2DResource( const Texture2DResource * tex2DResource, s32 mipLevelIndexStart, s32 mipLevelIndexEnd, const u8 Components[4] ); static nnResult ClearTexture2DResource( const Texture2DResource * tex2DResource, s32 mipLevelIndexStart, s32 mipLevelIndexEnd, u32 value );
ClearTexture2DResource ( const Texture2DResource *, s32, s32, const u8 )
|
Clears Texture2DResource resources using the color specified in the argument Components. |
ClearTexture2DResource ( const Texture2DResource *, s32, s32, u32 )
|
Adds a command for clearing the Texture2DResource using the specified value to the current command list. |
Component[0] is the red, luminance, or HI component. Component[1] is the green or LO component. Component[2] is the blue component. Component[3] is the alpha color.
This function adds commands to the command list. For more information, see the programming manual.
If the pixel format of the Texture2DResource to be cleared is smaller than 32 bits, 32-bit data is created for the specified value by repeating the number of times given by the resource pixel format size. FCRAM memory cannot be cleared. A function with the same functionality as nngxAddMemoryFillCommand is called internally. This function adds commands to the command list. For more information, see the programming manual.
CONFIDENTIAL