Blender V4.3
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.
eGPUTextureType get_texture_binding_type () const
 
eGPUSamplerFormat 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 258 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

Definition at line 4157 of file mtl_shader_generator.mm.

References BLI_assert_unreachable.

Referenced by get_msl_typestring(), and get_msl_typestring_wrapper().

◆ 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 278 of file mtl_shader_generator.hh.

References access.

◆ 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

Definition at line 271 of file mtl_shader_generator.hh.

◆ is_texture_sampler

bool blender::gpu::MSLTextureResource::is_texture_sampler

◆ location

uint blender::gpu::MSLTextureResource::location

◆ name

std::string blender::gpu::MSLTextureResource::name

◆ slot

uint blender::gpu::MSLTextureResource::slot

◆ stage

ShaderStage blender::gpu::MSLTextureResource::stage

◆ type

shader::ImageType blender::gpu::MSLTextureResource::type

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