// Copyright (c) Wojciech Figat. All rights reserved. #pragma once #if GRAPHICS_API_WEBGPU #include "Engine/Graphics/Shaders/GPUVertexLayout.h" #include "GPUDeviceWebGPU.h" /// /// Vertex layout object for Web GPU backend. /// class GPUVertexLayoutWebGPU : public GPUResourceBase { public: GPUVertexLayoutWebGPU(GPUDeviceWebGPU* device, const Elements& elements, bool explicitOffsets); public: WGPUVertexBufferLayout Layout; WGPUVertexAttribute Attributes[GPU_MAX_VS_ELEMENTS]; }; #endif