Blender V5.0
blender::gpu::MTLVertexAttributeDescriptorPSO Struct Reference

#include <mtl_pso_descriptor_state.hh>

Public Member Functions

bool operator== (const MTLVertexAttributeDescriptorPSO &other) const
uint64_t hash () const
void reset ()

Public Attributes

MTLVertexFormat format
int offset
int buffer_index
GPUVertFetchMode format_conversion_mode

Detailed Description

Vertex attribute and buffer descriptor wrappers for use in PSO construction and caching.

Definition at line 27 of file mtl_pso_descriptor_state.hh.

Member Function Documentation

◆ hash()

uint64_t blender::gpu::MTLVertexAttributeDescriptorPSO::hash ( ) const
inline

Definition at line 40 of file mtl_pso_descriptor_state.hh.

Referenced by blender::gpu::MTLVertexDescriptor::hash().

◆ operator==()

bool blender::gpu::MTLVertexAttributeDescriptorPSO::operator== ( const MTLVertexAttributeDescriptorPSO & other) const
inline

Definition at line 33 of file mtl_pso_descriptor_state.hh.

References buffer_index, format, format_conversion_mode, and offset.

◆ reset()

void blender::gpu::MTLVertexAttributeDescriptorPSO::reset ( )
inline

Member Data Documentation

◆ buffer_index

int blender::gpu::MTLVertexAttributeDescriptorPSO::buffer_index

◆ format

MTLVertexFormat blender::gpu::MTLVertexAttributeDescriptorPSO::format

◆ format_conversion_mode

GPUVertFetchMode blender::gpu::MTLVertexAttributeDescriptorPSO::format_conversion_mode

◆ offset

int blender::gpu::MTLVertexAttributeDescriptorPSO::offset

The documentation for this struct was generated from the following file: