Add initial base implementation for WebGPU rendering backend
This commit is contained in:
23
Source/Engine/GraphicsDevice/WebGPU/GPUVertexLayoutWebGPU.h
Normal file
23
Source/Engine/GraphicsDevice/WebGPU/GPUVertexLayoutWebGPU.h
Normal file
@@ -0,0 +1,23 @@
|
||||
// Copyright (c) Wojciech Figat. All rights reserved.
|
||||
|
||||
#pragma once
|
||||
|
||||
#if GRAPHICS_API_WEBGPU
|
||||
|
||||
#include "Engine/Graphics/Shaders/GPUVertexLayout.h"
|
||||
#include "GPUDeviceWebGPU.h"
|
||||
|
||||
/// <summary>
|
||||
/// Vertex layout object for Web GPU backend.
|
||||
/// </summary>
|
||||
class GPUVertexLayoutWebGPU : public GPUResourceBase<GPUDeviceWebGPU, GPUVertexLayout>
|
||||
{
|
||||
public:
|
||||
GPUVertexLayoutWebGPU(GPUDeviceWebGPU* device, const Elements& elements, bool explicitOffsets);
|
||||
|
||||
public:
|
||||
WGPUVertexBufferLayout Layout;
|
||||
WGPUVertexAttribute Attributes[GPU_MAX_VS_ELEMENTS];
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user