Luna::RHI::Viewport
Describes one viewport used by ICommandBuffer::set_viewport and ICommandBuffer::set_viewports.
struct Luna::RHI::Viewport
Member objects
-
The X position, in pixels, of the top left corner of the viewport, relative to the top left corner of the render target (X axis points to right).
-
The Y position, in pixels, of the top left corner of the viewport, relative to the top left corner of the render target (Y axis points to down).
-
The width of the viewport in pixels.
-
The height of the viewport in pixels.
-
The minimum depth value of the viewport. The value must between [0.0, 1.0].
-
The maximum depth value of the viewport. The value must between [0.0, 1.0].