|
Blender V5.0
|
#include "MEM_guardedalloc.h"#include "GPU_batch.hh"#include "GPU_capabilities.hh"#include "GPU_shader.hh"#include "GPU_vertex_format.hh"#include <Metal/Metal.h>#include <QuartzCore/QuartzCore.h>#include <functional>#include <unordered_map>#include <deque>#include <mutex>#include <thread>#include "mtl_framebuffer.hh"#include "mtl_shader_interface.hh"#include "mtl_shader_shared.hh"#include "mtl_state.hh"#include "mtl_texture.hh"#include "gpu_shader_create_info.hh"#include "gpu_shader_private.hh"Go to the source code of this file.
Namespaces | |
| namespace | blender |
| namespace | blender::gpu |
Macros | |
| #define | MTL_SHADER_DEBUG_EXPORT_SOURCE 0 |
| #define | MTL_SHADER_TRANSLATION_DEBUG_OUTPUT 0 |
| #define | shader_debug_printf(...) |
| #define | MTL_SHADER_SPECIALIZATION_CONSTANT_BASE_ID 30 |
| #define | MTL_SHADER_MAX_SPECIALIZED_PSOS 5 |
| #define | RESIZE_TYPE(_type, _suffix) |
| #define | FORMAT_PER_COMP(_type, _suffix) |
| #define | FORMAT_PER_COMP_SMALL_INT(_type) |
| #define | FORMAT_PER_COMP_INT(_type) |
| #define | FORMAT_PER_TYPE(_comp, _value) |
| #define | FORMAT_PER_TYPE(_comp) |
Functions | |
| MTLVertexFormat | blender::gpu::format_resize_comp (MTLVertexFormat mtl_format, uint32_t components) |
| MTLVertexFormat | blender::gpu::format_get_component_type (MTLVertexFormat mtl_format) |
| MTLVertexFormat | blender::gpu::to_mtl (GPUVertCompType component_type, GPUVertFetchMode fetch_mode, uint32_t component_len) |
| int | blender::gpu::mtl_format_component_len (MTLVertexFormat format) |
| bool | blender::gpu::mtl_format_is_normalized (MTLVertexFormat format) |
| MTLVertexFormat | blender::gpu::mtl_convert_vertex_format_ex (MTLVertexFormat shader_attr_format, GPUVertCompType component_type, uint32_t component_len, GPUVertFetchMode fetch_mode) |
| bool | blender::gpu::mtl_convert_vertex_format (MTLVertexFormat shader_attr_format, GPUVertCompType component_type, uint32_t component_len, GPUVertFetchMode fetch_mode, MTLVertexFormat *r_convertedFormat) |
| #define FORMAT_PER_COMP | ( | _type, | |
| _suffix ) |
Referenced by blender::gpu::to_mtl().
| #define FORMAT_PER_COMP_INT | ( | _type | ) |
Referenced by blender::gpu::to_mtl().
| #define FORMAT_PER_COMP_SMALL_INT | ( | _type | ) |
Referenced by blender::gpu::to_mtl().
| #define FORMAT_PER_TYPE | ( | _comp | ) |
| #define FORMAT_PER_TYPE | ( | _comp, | |
| _value ) |
Referenced by blender::gpu::mtl_format_component_len(), and blender::gpu::mtl_format_is_normalized().
| #define MTL_SHADER_DEBUG_EXPORT_SOURCE 0 |
Definition at line 42 of file mtl_shader.hh.
| #define MTL_SHADER_MAX_SPECIALIZED_PSOS 5 |
Definition at line 57 of file mtl_shader.hh.
| #define MTL_SHADER_SPECIALIZATION_CONSTANT_BASE_ID 30 |
Definition at line 53 of file mtl_shader.hh.
Referenced by blender::gpu::generate_specialization_constant_declarations(), and blender::gpu::populate_specialization_constant_values().
| #define MTL_SHADER_TRANSLATION_DEBUG_OUTPUT 0 |
Definition at line 43 of file mtl_shader.hh.
| #define RESIZE_TYPE | ( | _type, | |
| _suffix ) |
Referenced by blender::gpu::format_resize_comp().
| #define shader_debug_printf | ( | ... | ) |
Definition at line 49 of file mtl_shader.hh.
Referenced by blender::gpu::MTLShader::bake_pipeline_state(), blender::gpu::MSLGeneratorInterface::bake_shader_interface(), blender::gpu::MSLGeneratorInterface::generate_msl_fragment_input_population(), blender::gpu::MSLGeneratorInterface::generate_msl_textures_input_string(), and blender::gpu::MTLShader::uniform_float().