Hymn to Beauty
C++ 3D Engine
Video::WebGPUGeometryBinding Class Reference

WebGPU implementation of GeometryBinding. More...

#include <WebGPUGeometryBinding.hpp>

Inheritance diagram for Video::WebGPUGeometryBinding:
Video::GeometryBinding

Public Member Functions

 WebGPUGeometryBinding (Buffer *vertexBuffer, IndexType indexType=IndexType::NONE, const Buffer *indexBuffer=nullptr)
 Create new WebGPU geometry binding. More...
 
 ~WebGPUGeometryBinding () final
 Destructor. More...
 
WebGPUBuffer * GetVertexBuffer ()
 Get the vertex buffer. More...
 
IndexType GetIndexType () const
 Get the type of values in the index buffer. More...
 
const WebGPUBuffer * GetIndexBuffer () const
 Get the index buffer. More...
 
- Public Member Functions inherited from Video::GeometryBinding
 GeometryBinding ()
 Create a new shader. More...
 
virtual ~GeometryBinding ()
 Destructor. More...
 

Additional Inherited Members

- Public Types inherited from Video::GeometryBinding
enum class  IndexType { NONE = 0 , SHORT , INT }
 The type of values in the index buffer. More...
 

Detailed Description

WebGPU implementation of GeometryBinding.

Constructor & Destructor Documentation

◆ WebGPUGeometryBinding()

Video::WebGPUGeometryBinding::WebGPUGeometryBinding ( Buffer *  vertexBuffer,
IndexType  indexType = IndexType::NONE,
const Buffer *  indexBuffer = nullptr 
)

Create new WebGPU geometry binding.

Parameters
vertexBufferBuffer containing the vertex data.
indexTypeThe type of values in the index buffer.
indexBufferIndex buffer.

◆ ~WebGPUGeometryBinding()

Video::WebGPUGeometryBinding::~WebGPUGeometryBinding ( )
final

Destructor.

Member Function Documentation

◆ GetIndexBuffer()

const WebGPUBuffer * Video::WebGPUGeometryBinding::GetIndexBuffer ( ) const

Get the index buffer.

Returns
The index buffer.

◆ GetIndexType()

GeometryBinding::IndexType Video::WebGPUGeometryBinding::GetIndexType ( ) const

Get the type of values in the index buffer.

Returns
The type of values in the index buffer.

◆ GetVertexBuffer()

WebGPUBuffer * Video::WebGPUGeometryBinding::GetVertexBuffer ( )

Get the vertex buffer.

Returns
The vertex buffer.

The documentation for this class was generated from the following files: