3 #ifndef vtkWebGPUInternalsRenderPipelineDescriptor_h
4 #define vtkWebGPUInternalsRenderPipelineDescriptor_h
6 #include "vtkRenderingWebGPUModule.h"
11 VTK_ABI_NAMESPACE_BEGIN
13 :
public wgpu::RenderPipelineDescriptor
16 static constexpr
int kMaxVertexBuffers = 8u;
17 static constexpr
int kMaxVertexAttributes = 16u;
18 static constexpr
int kMaxColorAttachments = 8u;
30 wgpu::DepthStencilState* EnableDepthStencil(
31 wgpu::TextureFormat format = wgpu::TextureFormat::Depth24PlusStencil8);
32 void DisableDepthStencil();
34 std::array<wgpu::VertexBufferLayout, kMaxVertexBuffers>
cBuffers;
35 std::array<wgpu::VertexAttribute, kMaxVertexAttributes>
cAttributes;
36 std::array<wgpu::ColorTargetState, kMaxColorAttachments>
cTargets;
37 std::array<wgpu::BlendState, kMaxColorAttachments>
cBlends;
wgpu::FragmentState cFragment
std::array< wgpu::VertexBufferLayout, kMaxVertexBuffers > cBuffers
wgpu::DepthStencilState cDepthStencil
std::array< wgpu::ColorTargetState, kMaxColorAttachments > cTargets
std::array< wgpu::VertexAttribute, kMaxVertexAttributes > cAttributes
std::array< wgpu::BlendState, kMaxColorAttachments > cBlends