Control when Dynamic Scaling happens
Use the DynamicallyScalableExplicit API to scale render targets manually.
Read time 1 minuteLast updated 23 days ago
The function immediately scales render textures when called. However, you can modify this behavior by using the flag. Render textures marked with will scale when you call , instead of being automatically scaled when is called. Scaling causes render texture contents to be invalidated, so you must use and to ensure render texture data persists through scale factor changes.
ScalableBufferManager.ResizeBuffersDynamicallyScalableExplicitDynamicallyScalableExplicitRenderTexture.ApplyDynamicScaleScalableBufferManager.ResizeBuffersDynamicallyScalableExplicitRenderTexture.ApplyDynamicScaleFor instance, temporal anti-aliasing improves the visual quality of the current frame by reusing data from previous frames. If the dynamic resolution scale factor changes between frames, you need to preserve the previous frame's data. You can achieve this by marking the render textures containing this data with , allowing them to remain valid even after calling . You only need to resize the current frame's render texture using , ensuring the previous frame's render texture remains valid for sampling.
DynamicallyScalableExplicitScalableBufferManager.ResizeBuffersRenderTexture.ApplyDynamicScale