struct WGPU::Viewport

Overview

A render viewport region.

See Also: RenderPass.viewport=

Defined in:

wgpu.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(x : UInt32, y : UInt32, width : UInt32, height : UInt32, min_depth : Float32, max_depth : Float32) #

[View source]

Instance Method Detail

def clone #

[View source]
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) #

[View source]
def height : UInt32 #

def max_depth : Float32 #

def min_depth : Float32 #

def width : UInt32 #

def x : UInt32 #

def y : UInt32 #