Diligent Engine
 
Loading...
Searching...
No Matches
Diligent::WebGPUResourceAttribs Struct Reference

WebGPU-specific resource attributes. More...

#include <PipelineResourceSignature.h>

Public Attributes

WEB_GPU_BINDING_TYPE BindingType = WEB_GPU_BINDING_TYPE_DEFAULT
 WebGPU-specific binding type, see Diligent::WEB_GPU_BINDING_TYPE.
 
RESOURCE_DIMENSION TextureViewDim = RESOURCE_DIM_TEX_2D
 
TEXTURE_FORMAT UAVTextureFormat = TEX_FORMAT_UNKNOWN
 When resource type is SHADER_RESOURCE_TYPE_TEXTURE_UAV, the texture view format.
 

Detailed Description

WebGPU-specific resource attributes.

Member Data Documentation

◆ TextureViewDim

RESOURCE_DIMENSION Diligent::WebGPUResourceAttribs::TextureViewDim = RESOURCE_DIM_TEX_2D

When resource type is SHADER_RESOURCE_TYPE_TEXTURE_SRV or SHADER_RESOURCE_TYPE_TEXTURE_UAV, specifies the texture view dimension. If not specified, the dimension is assumed to be RESOURCE_DIM_TEX_2D.