Blender V4.3
mtl_shader.hh File Reference
#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.h"
#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.

Classes

struct  blender::gpu::MTLBufferArgumentData
 
struct  blender::gpu::MTLRenderPipelineStateInstance
 
struct  blender::gpu::MTLComputePipelineStateCommon
 
struct  blender::gpu::MTLComputePipelineStateInstance
 
struct  blender::gpu::MTLShaderBuilder
 
class  blender::gpu::MTLShader
 
class  blender::gpu::MTLParallelShaderCompiler
 
class  blender::gpu::MTLShaderCompiler
 

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(...)   /* Null print. */
 
#define MTL_SHADER_SPECIALIZATION_CONSTANT_BASE_ID   30
 
#define MTL_SHADER_MAX_SPECIALIZED_PSOS   5
 

Functions

bool blender::gpu::mtl_vertex_format_resize (MTLVertexFormat mtl_format, uint32_t components, MTLVertexFormat *r_convertedFormat)
 
bool blender::gpu::mtl_convert_vertex_format (MTLVertexFormat shader_attrib_format, GPUVertCompType component_type, uint32_t component_length, GPUVertFetchMode fetch_mode, MTLVertexFormat *r_convertedFormat)
 
uint blender::gpu::comp_count_from_vert_format (MTLVertexFormat vert_format)
 
GPUVertFetchMode blender::gpu::fetchmode_from_vert_format (MTLVertexFormat vert_format)
 
GPUVertCompType blender::gpu::comp_type_from_vert_format (MTLVertexFormat vert_format)
 

Macro Definition Documentation

◆ MTL_SHADER_DEBUG_EXPORT_SOURCE

#define MTL_SHADER_DEBUG_EXPORT_SOURCE   0

Definition at line 42 of file mtl_shader.hh.

◆ MTL_SHADER_MAX_SPECIALIZED_PSOS

#define MTL_SHADER_MAX_SPECIALIZED_PSOS   5

Definition at line 57 of file mtl_shader.hh.

◆ MTL_SHADER_SPECIALIZATION_CONSTANT_BASE_ID

#define MTL_SHADER_SPECIALIZATION_CONSTANT_BASE_ID   30

◆ MTL_SHADER_TRANSLATION_DEBUG_OUTPUT

#define MTL_SHADER_TRANSLATION_DEBUG_OUTPUT   0

Definition at line 43 of file mtl_shader.hh.

◆ shader_debug_printf