struct WGPU::Viewport
- WGPU::Viewport
- Struct
- Value
- Object
Overview
A render viewport region.
See Also: RenderPass.viewport=
Defined in:
wgpu.crConstructors
Instance Method Summary
- #clone
- #copy_with(x _x = @x, y _y = @y, width _width = @width, height _height = @height, min_depth _min_depth = @min_depth, max_depth _max_depth = @max_depth)
- #height : UInt32
- #max_depth : Float32
- #min_depth : Float32
- #width : UInt32
- #x : UInt32
- #y : UInt32
Constructor Detail
def self.new(x : UInt32, y : UInt32, width : UInt32, height : UInt32, min_depth : Float32, max_depth : Float32)
#
Instance Method Detail
def copy_with(x _x = @x, y _y = @y, width _width = @width, height _height = @height, min_depth _min_depth = @min_depth, max_depth _max_depth = @max_depth)
#