KiCad PCB EDA Suite
Loading...
Searching...
No Matches
rhi_command.h
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
5 *
6 * This program is free software: you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation, either version 3 of the License, or (at your
9 * option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#pragma once
21
22#include <rhi/rhi_handle.h>
23#include <rhi/rhi_render_pass.h>
24#include <cstdint>
25
28{
29 float x = 0.0f;
30 float y = 0.0f;
31 float width = 0.0f;
32 float height = 0.0f;
33 float minDepth = 0.0f;
34 float maxDepth = 1.0f;
35};
36
39{
40 int32_t x = 0;
41 int32_t y = 0;
42 uint32_t width = 0;
43 uint32_t height = 0;
44};
45
58
60constexpr uint32_t RHI_MAX_PUSH_CONSTANT_BYTES = 256;
constexpr uint32_t RHI_MAX_PUSH_CONSTANT_BYTES
Largest push constant size SetPushConstants() accepts, in bytes.
Definition rhi_command.h:60
RHI_HANDLE< RHI_TAG_FRAMEBUFFER > RHI_FramebufferHandle
Definition rhi_handle.h:93
RHI_HANDLE< RHI_TAG_RENDER_PASS > RHI_RenderPassHandle
Definition rhi_handle.h:88
RHI_FramebufferHandle framebuffer
Definition rhi_command.h:49
bool hasClearColorOverride
Replaces the render pass clear color of every CLEAR color attachment, so the background can change pe...
Definition rhi_command.h:55
RHI_RenderPassHandle renderPass
Definition rhi_command.h:48
Same pixel space as RHI_VIEWPORT.
Definition rhi_command.h:39
Top-left origin, in device pixels.
Definition rhi_command.h:28