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

#include <mtl_shader_generator.hh>

Public Member Functions

void resolve_binding_indices ()
bool operator== (const MSLTextureResource &right) const
std::string get_msl_access_str () const
std::string get_msl_typestring_wrapper (bool is_addr) const
std::string get_msl_typestring (bool is_addr) const
Shader Translation.
GPUTextureType get_texture_binding_type () const
GPUSamplerFormat get_sampler_format () const
std::string get_msl_return_type_str () const
std::string get_msl_texture_type_str () const
std::string get_msl_wrapper_type_str () const

Public Attributes

ShaderStage stage
shader::ImageType type
std::string name
MSLTextureSamplerAccess access
bool is_texture_sampler
uint slot
uint location
int atomic_fallback_buffer_ssbo_id = -1

Detailed Description

Definition at line 187 of file mtl_shader_generator.hh.

Member Function Documentation

◆ get_msl_access_str()

std::string blender::gpu::MSLTextureResource::get_msl_access_str ( ) const
inline

◆ get_msl_return_type_str()

std::string blender::gpu::MSLTextureResource::get_msl_return_type_str ( ) const

◆ get_msl_texture_type_str()

std::string blender::gpu::MSLTextureResource::get_msl_texture_type_str ( ) const

◆ get_msl_typestring()

std::string blender::gpu::MSLTextureResource::get_msl_typestring ( bool is_addr) const
inline

◆ get_msl_typestring_wrapper()

std::string blender::gpu::MSLTextureResource::get_msl_typestring_wrapper ( bool is_addr) const
inline

◆ get_msl_wrapper_type_str()

std::string blender::gpu::MSLTextureResource::get_msl_wrapper_type_str ( ) const

◆ get_sampler_format()

◆ get_texture_binding_type()

◆ operator==()

bool blender::gpu::MSLTextureResource::operator== ( const MSLTextureResource & right) const
inline

Definition at line 207 of file mtl_shader_generator.hh.

References access, name, and type.

◆ resolve_binding_indices()

void blender::gpu::MSLTextureResource::resolve_binding_indices ( )

Member Data Documentation

◆ access

MSLTextureSamplerAccess blender::gpu::MSLTextureResource::access

◆ atomic_fallback_buffer_ssbo_id

int blender::gpu::MSLTextureResource::atomic_fallback_buffer_ssbo_id = -1

◆ is_texture_sampler

bool blender::gpu::MSLTextureResource::is_texture_sampler

◆ location

uint blender::gpu::MSLTextureResource::location

◆ name

◆ slot

◆ stage

◆ type


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