CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
WGRenderPass.hpp
Go to the documentation of this file.
1//
2// CeresEngine - A game development framework
3//
4// Created by Rogiel Sulzbach.
5// Copyright (c) 2018-2022 Rogiel Sulzbach. All rights reserved.
6//
7
8#pragma once
9
10#include "WebGPU.hpp"
11
13
14namespace CeresEngine {
15
16 class WGDevice;
17 class WGGraphicsPipeline;
18
20 class WGRenderPass final : public GPURenderPass, public WGDeviceObject<WGRenderPass, GPURenderPass> {
21 private:
24
25 public:
28
29 public:
31 void begin(GPUCommandBuffer& commandBuffer, GPURenderTarget& renderTarget, const Color& clearColor = Color(0.0, 0.0, 0.0, 0.0)) final;
32
35 };
36
37} // namespace CeresEngine
A retain-release type of smart pointer.
Definition SmartPtr.hpp:132
Definition GPUCommandBuffer.hpp:77
GPUDevice & device
The owning device this object was created from.
Definition Common.hpp:55
Definition GPURenderPass.hpp:149
Definition GPURenderTarget.hpp:105
const Descriptor & descriptor
A structure that describes the object and it's properties.
Definition Common.hpp:69
Definition WebGPU.hpp:119
WebGPU RenderAPI render pass object.
Definition WGRenderPass.hpp:20
void end(GPUCommandBuffer &commandBuffer, GPURenderTarget &renderTarget) final
WGRenderPass(WGDevicePtr device, const GPURenderPassDescriptor &descriptor)
void begin(GPUCommandBuffer &commandBuffer, GPURenderTarget &renderTarget, const Color &clearColor=Color(0.0, 0.0, 0.0, 0.0)) final
const GPURenderPassDescriptor mDescriptor
A structure that describes the render pass and it's properties.
Definition WGRenderPass.hpp:23
Definition Application.hpp:19
@ Color
Attachment is used for color output.
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25
Render pass descriptor structure.
Definition GPURenderPass.hpp:112