RenderTexture.DiscardContents(boolean discardColor, boolean discardDepth)
Hint the GPU driver that the contents of the RenderTexture will not be used.
Parameters:
Name | Type | Description |
---|---|---|
discardColor | boolean | Should the colour buffer be discarded? |
discardDepth | boolean | Should the depth buffer be discarded? |
Usage
---@type RenderTexture
local rendertexture;
---@type boolean
local discardColor;
---@type boolean
local discardDepth;
rendertexture.DiscardContents(discardColor, discardDepth)