A texture.
Definition: Texture.hpp:8
Format
The format of the texture.
Definition: Texture.hpp:18
Type
The type of texture.
Definition: Texture.hpp:11
WebGPU implementation of Texture.
Definition: WebGPUTexture.hpp:13
~WebGPUTexture() final
Destructor.
Definition: WebGPUTexture.cpp:120
WGPUTexture GetTexture() const
Get the interan WebGPU texture.
Definition: WebGPUTexture.cpp:125
WGPUTextureView GetTextureView() const
Get the texture view.
Definition: WebGPUTexture.cpp:129
WGPUTextureFormat GetTextureFormat() const
Get the format of the texture.
Definition: WebGPUTexture.cpp:133
uint32_t GetSampleCount() const
Get the MSAA sample count.
Definition: WebGPUTexture.cpp:137
WebGPUTexture(WebGPURenderer &renderer, const glm::uvec2 size, Texture::Type type, Texture::Format format, int components=0, unsigned char *data=nullptr, uint32_t sampleCount=1)
Create new WebGPU texture.
Definition: WebGPUTexture.cpp:14