|
Blender V5.0
|
#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 |
Definition at line 187 of file mtl_shader_generator.hh.
|
inline |
Definition at line 214 of file mtl_shader_generator.hh.
References access, BLI_assert, blender::gpu::TEXTURE_ACCESS_READ, blender::gpu::TEXTURE_ACCESS_READWRITE, blender::gpu::TEXTURE_ACCESS_SAMPLE, and blender::gpu::TEXTURE_ACCESS_WRITE.
Referenced by get_msl_typestring(), and get_msl_typestring_wrapper().
| std::string blender::gpu::MSLTextureResource::get_msl_return_type_str | ( | ) | const |
Definition at line 3236 of file mtl_shader_generator.mm.
References BLI_assert_unreachable, and type.
Referenced by get_msl_typestring(), get_msl_typestring_wrapper(), and blender::gpu::MSLGeneratorInterface::prepare_from_createinfo().
| std::string blender::gpu::MSLTextureResource::get_msl_texture_type_str | ( | ) | const |
Definition at line 2964 of file mtl_shader_generator.mm.
References BLI_assert_unreachable, blender::gpu::MTLBackend::get_capabilities(), blender::gpu::MTLCapabilities::supports_texture_atomics, and type.
Referenced by get_msl_typestring().
|
inline |
Definition at line 245 of file mtl_shader_generator.hh.
References get_msl_access_str(), get_msl_return_type_str(), get_msl_texture_type_str(), and str.
Referenced by blender::gpu::MSLGeneratorInterface::generate_msl_textures_input_string().
|
inline |
Definition at line 236 of file mtl_shader_generator.hh.
References get_msl_access_str(), get_msl_return_type_str(), get_msl_wrapper_type_str(), and str.
| std::string blender::gpu::MSLTextureResource::get_msl_wrapper_type_str | ( | ) | const |
Definition at line 3098 of file mtl_shader_generator.mm.
References BLI_assert_unreachable, blender::gpu::MTLBackend::get_capabilities(), blender::gpu::MTLCapabilities::supports_texture_atomics, and type.
Referenced by get_msl_typestring_wrapper().
| GPUSamplerFormat blender::gpu::MSLTextureResource::get_sampler_format | ( | ) | const |
Definition at line 3410 of file mtl_shader_generator.mm.
References BLI_assert_unreachable, blender::gpu::GPU_SAMPLER_TYPE_DEPTH, blender::gpu::GPU_SAMPLER_TYPE_FLOAT, blender::gpu::GPU_SAMPLER_TYPE_INT, blender::gpu::GPU_SAMPLER_TYPE_UINT, and type.
| GPUTextureType blender::gpu::MSLTextureResource::get_texture_binding_type | ( | ) | const |
Definition at line 3297 of file mtl_shader_generator.mm.
References BLI_assert_unreachable, blender::gpu::GPU_TEXTURE_1D, blender::gpu::GPU_TEXTURE_1D_ARRAY, blender::gpu::GPU_TEXTURE_2D, blender::gpu::GPU_TEXTURE_2D_ARRAY, blender::gpu::GPU_TEXTURE_3D, blender::gpu::GPU_TEXTURE_BUFFER, blender::gpu::GPU_TEXTURE_CUBE, blender::gpu::GPU_TEXTURE_CUBE_ARRAY, and type.
|
inline |
Definition at line 207 of file mtl_shader_generator.hh.
| void blender::gpu::MSLTextureResource::resolve_binding_indices | ( | ) |
| MSLTextureSamplerAccess blender::gpu::MSLTextureResource::access |
Definition at line 191 of file mtl_shader_generator.hh.
Referenced by get_msl_access_str(), operator==(), and blender::gpu::MSLGeneratorInterface::prepare_from_createinfo().
| int blender::gpu::MSLTextureResource::atomic_fallback_buffer_ssbo_id = -1 |
Definition at line 200 of file mtl_shader_generator.hh.
Referenced by blender::gpu::MSLGeneratorInterface::prepare_from_createinfo().
| bool blender::gpu::MSLTextureResource::is_texture_sampler |
Definition at line 193 of file mtl_shader_generator.hh.
Referenced by blender::gpu::MSLGeneratorInterface::prepare_from_createinfo().
| uint blender::gpu::MSLTextureResource::location |
Definition at line 197 of file mtl_shader_generator.hh.
Referenced by blender::gpu::MSLGeneratorInterface::prepare_from_createinfo().
| std::string blender::gpu::MSLTextureResource::name |
Definition at line 190 of file mtl_shader_generator.hh.
Referenced by blender::gpu::MSLGeneratorInterface::generate_msl_textures_input_string(), operator==(), and blender::gpu::MSLGeneratorInterface::prepare_from_createinfo().
| uint blender::gpu::MSLTextureResource::slot |
Definition at line 195 of file mtl_shader_generator.hh.
Referenced by blender::gpu::MSLGeneratorInterface::generate_msl_textures_input_string(), and blender::gpu::MSLGeneratorInterface::prepare_from_createinfo().
| ShaderStage blender::gpu::MSLTextureResource::stage |
Definition at line 188 of file mtl_shader_generator.hh.
Referenced by blender::gpu::MSLGeneratorInterface::generate_msl_textures_input_string(), and blender::gpu::MSLGeneratorInterface::prepare_from_createinfo().
| shader::ImageType blender::gpu::MSLTextureResource::type |
Definition at line 189 of file mtl_shader_generator.hh.
Referenced by get_msl_return_type_str(), get_msl_texture_type_str(), get_msl_wrapper_type_str(), get_sampler_format(), get_texture_binding_type(), operator==(), and blender::gpu::MSLGeneratorInterface::prepare_from_createinfo().