tiny.gpu.RenderViewport
Defined in contract.
API (7)
Actions
Public operations.
Fields and members
Public fields and members.
Source
Source: lib/gpu/src/contract.zig:366
zig
pub const RenderViewport = struct { x: f32 = 0, y: f32 = 0, width: f32, height: f32, min_depth: f32 = 0, max_depth: f32 = 1, pub fn valid(self: RenderViewport) bool { if (!std.math.isFinite(self.x) or !std.math.isFinite(self.y)) return false; if (!std.math.isFinite(self.width) or !std.math.isFinite(self.height)) return false; if (!std.math.isFinite(self.min_depth) or !std.math.isFinite(self.max_depth)) return false; if (self.width <= 0 or self.height <= 0) return false; if (self.min_depth < 0 or self.max_depth > 1 or self.min_depth > self.max_depth) return false; return true; }};Source: lib/gpu/src/root.zig:70
zig
pub const RenderViewport = contract.RenderViewport;Audit
| Definitions | 2 |
|---|---|
| Public names | 4 |
| Members | 6 |
| Version | 26.7.0 |
| Revision | daab053ee433 |