Add initial base implementation for WebGPU rendering backend

This commit is contained in:
Wojtek Figat
2026-02-23 11:49:45 +01:00
parent 4ca10c7869
commit 6081ed35bc
29 changed files with 3565 additions and 2 deletions

View File

@@ -0,0 +1,30 @@
// Copyright (c) Wojciech Figat. All rights reserved.
#pragma once
#include "Engine/Graphics/Textures/GPUSampler.h"
#include "GPUDeviceWebGPU.h"
#if GRAPHICS_API_WEBGPU
/// <summary>
/// Sampler object for Web GPU backend.
/// </summary>
class GPUSamplerWebGPU : public GPUResourceBase<GPUDeviceWebGPU, GPUSampler>
{
public:
GPUSamplerWebGPU(GPUDeviceWebGPU* device)
: GPUResourceBase<GPUDeviceWebGPU, GPUSampler>(device, StringView::Empty)
{
}
public:
WGPUSampler Sampler = nullptr;
protected:
// [GPUSampler]
bool OnInit() override;
void OnReleaseGPU() override;
};
#endif