Skip to content

SDL3PostProcessPipeline.SetEffectDimensions(int, int) Method

Definition

Namespace: Brine2D.Rendering.SDL.PostProcessing

Propagate new dimensions to all SDL3 post-process effects, except LetterboxEffect \(which tracks the live swapchain size instead, via [SetSwapchainDimensions\(int, int\)](SetSwapchainDimensions(int,int).md 'Brine2D.Rendering.SDL.PostProcessing.SDL3PostProcessPipeline.SetSwapchainDimensions\(int, int\)')). Call this when render targets are recreated \(e\.g\. on window resize\). If effects haven't been initialized yet, dimensions are deferred until first Execute.

C#
public void SetEffectDimensions(int width, int height);

Parameters

width System.Int32

height System.Int32