Value | Meaning |
---|---|
Default | |
Clear | |
Load | |
Dontcare |
clear the render target
load the previous content of the render target
leave the render target in an undefined state
This is used in the sg_pass_action structure.
The default load action for all pass attachments is SG_LOADACTION_CLEAR, with the values rgba = { 0.5f, 0.5f, 0.5f, 1.0f }, depth=1.0f and stencil=0.
If you want to override the default behaviour, it is important to not only set the clear color, but the 'action' field as well (as long as this is _SG_LOADACTION_DEFAULT, the value fields will be ignored)
sg_load_action
Defines the load action that should be performed at the start of a render pass: