|
Blender V4.3
|
#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 |
Definition at line 258 of file mtl_shader_generator.hh.
|
inline |
Definition at line 285 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 4157 of file mtl_shader_generator.mm.
References BLI_assert_unreachable.
Referenced by get_msl_typestring(), and get_msl_typestring_wrapper().
| std::string blender::gpu::MSLTextureResource::get_msl_texture_type_str | ( | ) | const |
Definition at line 3885 of file mtl_shader_generator.mm.
References BLI_assert_unreachable, blender::gpu::MTLBackend::get_capabilities(), and blender::gpu::MTLCapabilities::supports_texture_atomics.
Referenced by get_msl_typestring().
|
inline |
Definition at line 316 of file mtl_shader_generator.hh.
References get_msl_access_str(), get_msl_return_type_str(), get_msl_texture_type_str(), and str.
|
inline |
Definition at line 307 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 4019 of file mtl_shader_generator.mm.
References BLI_assert_unreachable, blender::gpu::MTLBackend::get_capabilities(), and blender::gpu::MTLCapabilities::supports_texture_atomics.
Referenced by get_msl_typestring_wrapper().
| eGPUSamplerFormat blender::gpu::MSLTextureResource::get_sampler_format | ( | ) | const |
Definition at line 4331 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, and blender::gpu::GPU_SAMPLER_TYPE_UINT.
| eGPUTextureType blender::gpu::MSLTextureResource::get_texture_binding_type | ( | ) | const |
Definition at line 4218 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, and blender::gpu::GPU_TEXTURE_CUBE_ARRAY.
|
inline |
Definition at line 278 of file mtl_shader_generator.hh.
References access.
| void blender::gpu::MSLTextureResource::resolve_binding_indices | ( | ) |
| MSLTextureSamplerAccess blender::gpu::MSLTextureResource::access |
Definition at line 262 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 271 of file mtl_shader_generator.hh.
| bool blender::gpu::MSLTextureResource::is_texture_sampler |
Definition at line 264 of file mtl_shader_generator.hh.
Referenced by blender::gpu::MSLGeneratorInterface::prepare_from_createinfo().
| uint blender::gpu::MSLTextureResource::location |
Definition at line 268 of file mtl_shader_generator.hh.
Referenced by blender::gpu::MSLGeneratorInterface::prepare_from_createinfo().
| std::string blender::gpu::MSLTextureResource::name |
Definition at line 261 of file mtl_shader_generator.hh.
Referenced by blender::gpu::MSLGeneratorInterface::prepare_from_createinfo().
| uint blender::gpu::MSLTextureResource::slot |
Definition at line 266 of file mtl_shader_generator.hh.
Referenced by blender::gpu::MSLGeneratorInterface::prepare_from_createinfo().
| ShaderStage blender::gpu::MSLTextureResource::stage |
Definition at line 259 of file mtl_shader_generator.hh.
Referenced by blender::gpu::MSLGeneratorInterface::prepare_from_createinfo().
| shader::ImageType blender::gpu::MSLTextureResource::type |
Definition at line 260 of file mtl_shader_generator.hh.
Referenced by blender::gpu::MSLGeneratorInterface::prepare_from_createinfo().