Blender
V3.3
|
Namespaces | |
debug | |
GLVertArray | |
shader | |
shader_builder | |
tests | |
Typedefs | |
typedef Vector< StringRef > | DebugStack |
typedef enum blender::gpu::GPUQueryType | GPUQueryType |
using | GPUSourceDictionnary = Map< StringRef, struct GPUSource * > |
using | GPUFunctionDictionnary = Map< StringRef, struct GPUFunction * > |
typedef struct blender::gpu::ShaderInput | ShaderInput |
typedef enum blender::gpu::eGPUTextureFormatFlag | eGPUTextureFormatFlag |
typedef enum blender::gpu::eGPUTextureType | eGPUTextureType |
typedef enum blender::gpu::MTLPipelineStateDirtyFlag | MTLPipelineStateDirtyFlag |
Memory Management. | |
using | MTLTemporaryBuffer = MTLBufferRange |
Functions | |
static GPUContext * | wrap (Context *ctx) |
static Context * | unwrap (GPUContext *ctx) |
static const Context * | unwrap (const GPUContext *ctx) |
static GPUDrawList * | wrap (DrawList *vert) |
static DrawList * | unwrap (GPUDrawList *vert) |
static const DrawList * | unwrap (const GPUDrawList *vert) |
static GPUFrameBuffer * | wrap (FrameBuffer *vert) |
static FrameBuffer * | unwrap (GPUFrameBuffer *vert) |
static const FrameBuffer * | unwrap (const GPUFrameBuffer *vert) |
static size_t | to_bytesize (GPUIndexBufType type) |
static GPUIndexBuf * | wrap (IndexBuf *indexbuf) |
static IndexBuf * | unwrap (GPUIndexBuf *indexbuf) |
static const IndexBuf * | unwrap (const GPUIndexBuf *indexbuf) |
static int | indices_per_primitive (GPUPrimType prim_type) |
static char * | create_key (eGPUSupportLevel support_level, const char *vendor, const char *renderer, const char *version) |
static char * | create_gpu_name (const char *vendor, const char *renderer, const char *version) |
static void | sort_input_list (MutableSpan< ShaderInput > dst) |
static GPUShader * | wrap (Shader *vert) |
static Shader * | unwrap (GPUShader *vert) |
static const Shader * | unwrap (const GPUShader *vert) |
BLI_STATIC_ASSERT (sizeof(GPUState)==sizeof(uint64_t), "GPUState is too big.") | |
bool | operator== (const GPUState &a, const GPUState &b) |
bool | operator!= (const GPUState &a, const GPUState &b) |
GPUState | operator^ (const GPUState &a, const GPUState &b) |
GPUState | operator~ (const GPUState &a) |
BLI_STATIC_ASSERT (sizeof(GPUStateMutable)==sizeof(GPUStateMutable::data), "GPUStateMutable is too big.") | |
bool | operator== (const GPUStateMutable &a, const GPUStateMutable &b) |
bool | operator!= (const GPUStateMutable &a, const GPUStateMutable &b) |
GPUStateMutable | operator^ (const GPUStateMutable &a, const GPUStateMutable &b) |
GPUStateMutable | operator~ (const GPUStateMutable &a) |
static GPUStorageBuf * | wrap (StorageBuf *vert) |
static StorageBuf * | unwrap (GPUStorageBuf *vert) |
static const StorageBuf * | unwrap (const GPUStorageBuf *vert) |
static GPUTexture * | wrap (Texture *vert) |
static Texture * | unwrap (GPUTexture *vert) |
static const Texture * | unwrap (const GPUTexture *vert) |
size_t | to_bytesize (eGPUTextureFormat format) |
size_t | to_block_size (eGPUTextureFormat data_type) |
eGPUTextureFormatFlag | to_format_flag (eGPUTextureFormat format) |
int | to_component_len (eGPUTextureFormat format) |
size_t | to_bytesize (eGPUDataFormat data_format) |
size_t | to_bytesize (eGPUTextureFormat tex_format, eGPUDataFormat data_format) |
bool | validate_data_format (eGPUTextureFormat tex_format, eGPUDataFormat data_format) |
bool | validate_data_format_mtl (eGPUTextureFormat tex_format, eGPUDataFormat data_format) |
eGPUDataFormat | to_data_format (eGPUTextureFormat tex_format) |
eGPUFrameBufferBits | to_framebuffer_bits (eGPUTextureFormat tex_format) |
static eGPUTextureFormat | to_texture_format (const GPUVertFormat *format) |
static GPUUniformBuf * | wrap (UniformBuf *vert) |
static UniformBuf * | unwrap (GPUUniformBuf *vert) |
static const UniformBuf * | unwrap (const GPUUniformBuf *vert) |
static GPUVertBuf * | wrap (VertBuf *vert) |
static VertBuf * | unwrap (GPUVertBuf *vert) |
static const VertBuf * | unwrap (const GPUVertBuf *vert) |
ENUM_OPERATORS (MTLPipelineStateDirtyFlag, MTL_PIPELINE_STATE_CULLMODE_FLAG) | |
static MTLVisibilityResultMode | to_mtl_type (GPUQueryType type) |
std::string | tex_data_format_to_msl_type_str (eGPUDataFormat type) |
std::string | tex_data_format_to_msl_texture_template_type (eGPUDataFormat type) |
bool | mtl_format_is_writable (MTLPixelFormat format) |
MTLPixelFormat | mtl_format_get_writeable_view_format (MTLPixelFormat format) |
eGPUDataFormat | to_mtl_internal_data_format (eGPUTextureFormat tex_format) |
DEBUG_FUNC_OVERRIDE (glClear, GLbitfield, mask) | |
DEBUG_FUNC_OVERRIDE (glDeleteTextures, GLsizei, n, const GLuint *, textures) | |
DEBUG_FUNC_OVERRIDE (glDrawArrays, GLenum, mode, GLint, first, GLsizei, count) | |
DEBUG_FUNC_OVERRIDE (glFinish, void) | |
DEBUG_FUNC_OVERRIDE (glFlush, void) | |
DEBUG_FUNC_OVERRIDE (glGenTextures, GLsizei, n, GLuint *, textures) | |
DEBUG_FUNC_OVERRIDE (glGetTexImage, GLenum, target, GLint, level, GLenum, format, GLenum, type, void *, pixels) | |
DEBUG_FUNC_OVERRIDE (glReadBuffer, GLenum, mode) | |
DEBUG_FUNC_OVERRIDE (glReadPixels, GLint, x, GLint, y, GLsizei, width, GLsizei, height, GLenum, format, GLenum, type, void *, pixels) | |
DEBUG_FUNC_OVERRIDE (glTexImage1D, GLenum, target, GLint, level, GLint, internalformat, GLsizei, width, GLint, border, GLenum, format, GLenum, type, const void *, pixels) | |
DEBUG_FUNC_OVERRIDE (glTexImage2D, GLenum, target, GLint, level, GLint, internalformat, GLsizei, width, GLsizei, height, GLint, border, GLenum, format, GLenum, type, const void *, pixels) | |
DEBUG_FUNC_OVERRIDE (glTexParameteri, GLenum, target, GLenum, pname, GLint, param) | |
DEBUG_FUNC_OVERRIDE (glTexParameteriv, GLenum, target, GLenum, pname, const GLint *, params) | |
DEBUG_FUNC_OVERRIDE (glTexSubImage1D, GLenum, target, GLint, level, GLint, xoffset, GLsizei, width, GLenum, format, GLenum, type, const void *, pixels) | |
DEBUG_FUNC_OVERRIDE (glTexSubImage2D, GLenum, target, GLint, level, GLint, xoffset, GLint, yoffset, GLsizei, width, GLsizei, height, GLenum, format, GLenum, type, const void *, pixels) | |
static GLenum | to_gl (GPUIndexBufType type) |
static GLenum | to_gl (GPUPrimType prim_type) |
static GLenum | to_gl (GPUQueryType type) |
static GLbitfield | to_gl (eGPUBarrier barrier_bits) |
GLenum | to_gl_internal_format (eGPUTextureFormat format) |
GLenum | to_gl_target (eGPUTextureType type) |
GLenum | to_gl_proxy (eGPUTextureType type) |
GLenum | swizzle_to_gl (const char swizzle) |
GLenum | to_gl (eGPUDataFormat format) |
GLenum | to_gl_data_format (eGPUTextureFormat format) |
GLenum | channel_len_to_gl (int channel_len) |
static GLenum | to_gl (GPUUsageType type) |
static GLenum | to_gl (GPUVertCompType type) |
Capabilities | |
static const char * | mtl_extensions_get_null (int i) |
bool | supports_barycentric_whitelist (id< MTLDevice > device) |
static bool | detect_mip_render_workaround () |
static const char * | gl_extension_get (int i) |
static void | detect_workarounds () |
MTLLoadAction | mtl_load_action_from_gpu (eGPULoadOp action) |
MTLStoreAction | mtl_store_action_from_gpu (eGPUStoreOp action) |
State setting functions | |
static MTLCompareFunction | gpu_depth_function_to_metal (eGPUDepthTest depth_func) |
static MTLCompareFunction | gpu_stencil_func_to_metal (eGPUStencilTest stencil_func) |
static void | mtl_stencil_set_op_separate (MTLContext *context, eGPUFaceCullTest face, MTLStencilOperation stencil_fail, MTLStencilOperation depth_test_fail, MTLStencilOperation depthstencil_pass) |
static void | mtl_stencil_set_op (MTLContext *context, MTLStencilOperation stencil_fail, MTLStencilOperation depth_test_fail, MTLStencilOperation depthstencil_pass) |
Texture Utility Functions | |
MTLPixelFormat | gpu_texture_format_to_metal (eGPUTextureFormat tex_format) |
int | get_mtl_format_bytesize (MTLPixelFormat tex_format) |
int | get_mtl_format_num_components (MTLPixelFormat tex_format) |
bool | mtl_format_supports_blending (MTLPixelFormat format) |
Operations | |
static MTLTextureSwizzle | swizzle_to_mtl (const char swizzle) |
Platform | |
static bool | match_renderer (StringRef renderer, const Vector< std::string > &items) |
Enums Conversion | |
static GLenum | to_gl (const GPUAttachmentType type) |
static GLbitfield | to_gl (const eGPUFrameBufferBits bits) |
Binding assignment | |
To mimic vulkan, we assign binding at shader creation to avoid shader recompilation. In the future, we should set it in the shader using layout(binding = i) and query its value. | |
static int | block_binding (int32_t program, uint32_t block_index) |
static int | sampler_binding (int32_t program, uint32_t uniform_index, int32_t uniform_location, int *sampler_len) |
static int | image_binding (int32_t program, uint32_t uniform_index, int32_t uniform_location, int *image_len) |
static int | ssbo_binding (int32_t program, uint32_t ssbo_index) |
Vertex Array Bindings | |
static uint16_t | vbo_bind (const ShaderInterface *interface, const GPUVertFormat *format, uint v_first, uint v_len, const bool use_instancing) |
Variables | |
GPUCapabilities | GCaps |
GPUPlatformGlobal | GPG |
thread_local NSAutoreleasePool * | g_autoreleasepool = nil |
thread_local int | g_autoreleasepool_depth = 0 |
static const size_t | VISIBILITY_COUNT_PER_BUFFER = 512 |
static const size_t | VISIBILITY_RESULT_SIZE_IN_BYTES = 8 |
static const int | MTL_MAX_MIPMAP_COUNT = 15 |
static const int | MTL_MAX_FBO_ATTACHED = 16 |
const MTLSamplerState | DEFAULT_SAMPLER_STATE = {GPU_SAMPLER_DEFAULT } |
typedef Vector<StringRef> blender::gpu::DebugStack |
Definition at line 17 of file gpu_debug_private.hh.
using blender::gpu::GPUFunctionDictionnary = typedef Map<StringRef, struct GPUFunction *> |
Definition at line 37 of file gpu_shader_dependency.cc.
typedef enum blender::gpu::GPUQueryType blender::gpu::GPUQueryType |
using blender::gpu::GPUSourceDictionnary = typedef Map<StringRef, struct GPUSource *> |
Definition at line 36 of file gpu_shader_dependency.cc.
using blender::gpu::MTLTemporaryBuffer = typedef MTLBufferRange |
Definition at line 195 of file mtl_memory.hh.
typedef struct blender::gpu::ShaderInput blender::gpu::ShaderInput |
Enumerator | |
---|---|
GPU_FORMAT_DEPTH | |
GPU_FORMAT_STENCIL | |
GPU_FORMAT_INTEGER | |
GPU_FORMAT_FLOAT | |
GPU_FORMAT_COMPRESSED | |
GPU_FORMAT_DEPTH_STENCIL |
Definition at line 19 of file gpu_texture_private.hh.
Enumerator | |
---|---|
GPU_TEXTURE_1D | |
GPU_TEXTURE_2D | |
GPU_TEXTURE_3D | |
GPU_TEXTURE_CUBE | |
GPU_TEXTURE_ARRAY | |
GPU_TEXTURE_BUFFER | |
GPU_TEXTURE_1D_ARRAY | |
GPU_TEXTURE_2D_ARRAY | |
GPU_TEXTURE_CUBE_ARRAY |
Definition at line 31 of file gpu_texture_private.hh.
Enumerator | |
---|---|
GPU_INDEX_U16 | |
GPU_INDEX_U32 |
Definition at line 18 of file gpu_index_buffer_private.hh.
Enumerator | |
---|---|
GPU_QUERY_OCCLUSION |
Definition at line 16 of file gpu_query.hh.
Definition at line 356 of file mtl_context.hh.
|
strong |
Enumerator | |
---|---|
Unknown | |
Warning | |
Error |
Definition at line 95 of file gpu_shader_private.hh.
blender::gpu::BLI_STATIC_ASSERT | ( | sizeof(GPUStateMutable) | = =sizeof(GPUStateMutable::data) , |
"GPUStateMutable is too big." | |||
) |
Definition at line 28 of file gl_shader_interface.cc.
References blender::compositor::program.
Referenced by blender::gpu::GLShaderInterface::GLShaderInterface().
|
inline |
Assume UNORM/Float target. Used with #glReadPixels.
Definition at line 368 of file gl_texture.hh.
References BLI_assert_msg.
Referenced by blender::gpu::GLFrameBuffer::read().
|
static |
Definition at line 52 of file gpu_platform.cc.
References BLI_dynstr_appendf(), BLI_dynstr_free(), BLI_dynstr_get_cstring(), BLI_dynstr_new(), and BLI_str_replace_char().
Referenced by blender::gpu::GPUPlatformGlobal::init().
|
static |
Definition at line 28 of file gpu_platform.cc.
References BLI_dynstr_append(), BLI_dynstr_appendf(), BLI_dynstr_free(), BLI_dynstr_get_cstring(), BLI_dynstr_new(), BLI_str_replace_char(), GPU_SUPPORT_LEVEL_LIMITED, and GPU_SUPPORT_LEVEL_SUPPORTED.
Referenced by blender::gpu::GPUPlatformGlobal::init().
blender::gpu::DEBUG_FUNC_OVERRIDE | ( | glClear | , |
GLbitfield | , | ||
mask | |||
) |
blender::gpu::DEBUG_FUNC_OVERRIDE | ( | glDeleteTextures | , |
GLsizei | , | ||
n | , | ||
const GLuint * | , | ||
textures | |||
) |
blender::gpu::DEBUG_FUNC_OVERRIDE | ( | glDrawArrays | , |
GLenum | , | ||
mode | , | ||
GLint | , | ||
first | , | ||
GLsizei | , | ||
count | |||
) |
blender::gpu::DEBUG_FUNC_OVERRIDE | ( | glFinish | , |
void | |||
) |
blender::gpu::DEBUG_FUNC_OVERRIDE | ( | glFlush | , |
void | |||
) |
blender::gpu::DEBUG_FUNC_OVERRIDE | ( | glGenTextures | , |
GLsizei | , | ||
n | , | ||
GLuint * | , | ||
textures | |||
) |
blender::gpu::DEBUG_FUNC_OVERRIDE | ( | glGetTexImage | , |
GLenum | , | ||
target | , | ||
GLint | , | ||
level | , | ||
GLenum | , | ||
format | , | ||
GLenum | , | ||
type | , | ||
void * | , | ||
pixels | |||
) |
blender::gpu::DEBUG_FUNC_OVERRIDE | ( | glReadBuffer | , |
GLenum | , | ||
mode | |||
) |
blender::gpu::DEBUG_FUNC_OVERRIDE | ( | glReadPixels | , |
GLint | , | ||
x | , | ||
GLint | , | ||
y | , | ||
GLsizei | , | ||
width | , | ||
GLsizei | , | ||
height | , | ||
GLenum | , | ||
format | , | ||
GLenum | , | ||
type | , | ||
void * | , | ||
pixels | |||
) |
blender::gpu::DEBUG_FUNC_OVERRIDE | ( | glTexImage1D | , |
GLenum | , | ||
target | , | ||
GLint | , | ||
level | , | ||
GLint | , | ||
internalformat | , | ||
GLsizei | , | ||
width | , | ||
GLint | , | ||
border | , | ||
GLenum | , | ||
format | , | ||
GLenum | , | ||
type | , | ||
const void * | , | ||
pixels | |||
) |
blender::gpu::DEBUG_FUNC_OVERRIDE | ( | glTexImage2D | , |
GLenum | , | ||
target | , | ||
GLint | , | ||
level | , | ||
GLint | , | ||
internalformat | , | ||
GLsizei | , | ||
width | , | ||
GLsizei | , | ||
height | , | ||
GLint | , | ||
border | , | ||
GLenum | , | ||
format | , | ||
GLenum | , | ||
type | , | ||
const void * | , | ||
pixels | |||
) |
blender::gpu::DEBUG_FUNC_OVERRIDE | ( | glTexParameteri | , |
GLenum | , | ||
target | , | ||
GLenum | , | ||
pname | , | ||
GLint | , | ||
param | |||
) |
blender::gpu::DEBUG_FUNC_OVERRIDE | ( | glTexParameteriv | , |
GLenum | , | ||
target | , | ||
GLenum | , | ||
pname | , | ||
const GLint * | , | ||
params | |||
) |
blender::gpu::DEBUG_FUNC_OVERRIDE | ( | glTexSubImage1D | , |
GLenum | , | ||
target | , | ||
GLint | , | ||
level | , | ||
GLint | , | ||
xoffset | , | ||
GLsizei | , | ||
width | , | ||
GLenum | , | ||
format | , | ||
GLenum | , | ||
type | , | ||
const void * | , | ||
pixels | |||
) |
blender::gpu::DEBUG_FUNC_OVERRIDE | ( | glTexSubImage2D | , |
GLenum | , | ||
target | , | ||
GLint | , | ||
level | , | ||
GLint | , | ||
xoffset | , | ||
GLint | , | ||
yoffset | , | ||
GLsizei | , | ||
width | , | ||
GLsizei | , | ||
height | , | ||
GLenum | , | ||
format | , | ||
GLenum | , | ||
type | , | ||
const void * | , | ||
pixels | |||
) |
|
static |
Definition at line 156 of file gl_backend.cc.
References blender::gpu::debug::check_gl_error(), equals_v4v4(), fb(), MEM_callocN, MEM_freeN, tex, UNPACK4, and width.
Referenced by detect_workarounds().
|
static |
Definition at line 206 of file gl_backend.cc.
References blender::gpu::GLContext::base_instance_support, blender::gpu::GPUCapabilities::broken_amd_driver, blender::gpu::GLContext::clear_texture_support, blender::gpu::GPUCapabilities::clear_viewport_workaround, blender::gpu::GPUCapabilities::compute_shader_support, blender::gpu::GLContext::copy_image_support, blender::gpu::GLContext::debug_layer_support, blender::gpu::GLContext::debug_layer_workaround, blender::gpu::GPUCapabilities::depth_blitting_workaround, blender::gpu::GLContext::derivative_signs, detect_mip_render_workaround(), blender::gpu::GLContext::direct_state_access_support, blender::gpu::GLContext::fixed_restart_index_support, G, G_DEBUG_GPU_FORCE_WORKAROUNDS, GCaps, blender::gpu::GLContext::generate_mipmap_workaround, blender::gpu::GLContext::geometry_shader_invocations, GPU_DEVICE_ANY, GPU_DEVICE_ATI, GPU_DEVICE_INTEL, GPU_DEVICE_NVIDIA, GPU_DRIVER_ANY, GPU_DRIVER_OFFICIAL, GPU_DRIVER_OPENSOURCE, GPU_OS_ANY, GPU_OS_MAC, GPU_OS_UNIX, GPU_OS_WIN, GPU_type_matches(), blender::gpu::GLContext::layered_rendering_support, match_renderer(), blender::gpu::GPUCapabilities::minimum_per_vertex_stride, blender::gpu::GPUCapabilities::mip_render_workaround, blender::gpu::GLContext::multi_bind_support, blender::gpu::GLContext::multi_draw_indirect_support, blender::gpu::GLContext::native_barycentric_support, blender::gpu::GLContext::shader_draw_parameters_support, blender::gpu::GPUCapabilities::shader_image_load_store_support, blender::gpu::GPUCapabilities::shader_storage_buffer_objects_support, blender::gpu::GLContext::texture_cube_map_array_support, blender::gpu::GLContext::texture_filter_anisotropic_support, blender::gpu::GLContext::texture_gather_support, blender::gpu::GLContext::texture_storage_support, blender::gpu::GLContext::unused_fb_slot_workaround, blender::gpu::GPUCapabilities::use_hq_normals_workaround, blender::gpu::GPUCapabilities::use_main_context_workaround, and blender::gpu::GLContext::vertex_attrib_binding_support.
blender::gpu::ENUM_OPERATORS | ( | MTLPipelineStateDirtyFlag | , |
MTL_PIPELINE_STATE_CULLMODE_FLAG | |||
) |
int blender::gpu::get_mtl_format_bytesize | ( | MTLPixelFormat | tex_format | ) |
Definition at line 132 of file mtl_texture_util.mm.
References BLI_assert.
Referenced by blender::gpu::MTLTexture::update_sub().
int blender::gpu::get_mtl_format_num_components | ( | MTLPixelFormat | tex_format | ) |
Definition at line 191 of file mtl_texture_util.mm.
References BLI_assert.
Referenced by blender::gpu::MTLTexture::update_sub().
|
static |
Definition at line 201 of file gl_backend.cc.
|
static |
Definition at line 168 of file mtl_state.mm.
References BLI_assert, GPU_DEPTH_ALWAYS, GPU_DEPTH_EQUAL, GPU_DEPTH_GREATER, GPU_DEPTH_GREATER_EQUAL, GPU_DEPTH_LESS, GPU_DEPTH_LESS_EQUAL, and GPU_DEPTH_NONE.
|
static |
Definition at line 192 of file mtl_state.mm.
References BLI_assert, GPU_STENCIL_ALWAYS, GPU_STENCIL_EQUAL, GPU_STENCIL_NEQUAL, and GPU_STENCIL_NONE.
MTLPixelFormat blender::gpu::gpu_texture_format_to_metal | ( | eGPUTextureFormat | tex_format | ) |
Definition at line 39 of file mtl_texture_util.mm.
References BLI_assert, GPU_DEPTH24_STENCIL8, GPU_DEPTH32F_STENCIL8, GPU_DEPTH_COMPONENT16, GPU_DEPTH_COMPONENT24, GPU_DEPTH_COMPONENT32F, GPU_R11F_G11F_B10F, GPU_R16, GPU_R16F, GPU_R16I, GPU_R16UI, GPU_R32F, GPU_R32I, GPU_R32UI, GPU_R8, GPU_R8I, GPU_R8UI, GPU_RG16, GPU_RG16F, GPU_RG16I, GPU_RG16UI, GPU_RG32F, GPU_RG32I, GPU_RG32UI, GPU_RG8, GPU_RG8I, GPU_RG8UI, GPU_RGB16F, GPU_RGBA16, GPU_RGBA16F, GPU_RGBA16I, GPU_RGBA16UI, GPU_RGBA32F, GPU_RGBA32I, GPU_RGBA32UI, GPU_RGBA8, GPU_RGBA8I, GPU_RGBA8UI, and GPU_SRGB8_A8.
Referenced by blender::gpu::MTLTexture::update_sub().
|
inlinestatic |
Definition at line 91 of file gl_shader_interface.cc.
References blender::compositor::program, and type.
Referenced by blender::gpu::GLShaderInterface::GLShaderInterface().
|
inlinestatic |
Definition at line 112 of file gpu_index_buffer_private.hh.
References GPU_PRIM_LINES, GPU_PRIM_LINES_ADJ, GPU_PRIM_POINTS, and GPU_PRIM_TRIS.
Referenced by GPU_indexbuf_primitive_len().
|
static |
Definition at line 23 of file gl_backend.cc.
References blender::StringRefBase::endswith(), blender::StringRefBase::find(), and blender::StringRefBase::not_found.
Referenced by detect_workarounds().
|
static |
Definition at line 241 of file mtl_backend.mm.
|
inline |
Definition at line 497 of file mtl_texture.hh.
Referenced by blender::gpu::MTLTexture::update_sub().
|
inline |
Definition at line 478 of file mtl_texture.hh.
bool blender::gpu::mtl_format_supports_blending | ( | MTLPixelFormat | format | ) |
Definition at line 246 of file mtl_texture_util.mm.
References blender::gpu::MTLBackend::get_capabilities(), blender::gpu::MTLCapabilities::supports_family_mac1, and blender::gpu::MTLCapabilities::supports_family_mac_catalyst1.
MTLLoadAction blender::gpu::mtl_load_action_from_gpu | ( | eGPULoadOp | action | ) |
Definition at line 1484 of file mtl_framebuffer.mm.
References GPU_LOADACTION_CLEAR, and GPU_LOADACTION_LOAD.
Referenced by blender::gpu::MTLFrameBuffer::bake_render_pass_descriptor().
|
static |
Definition at line 265 of file mtl_state.mm.
References blender::compositor::context, GPU_CULL_BACK, GPU_CULL_FRONT, and mtl_stencil_set_op_separate().
|
static |
Definition at line 241 of file mtl_state.mm.
References BLI_assert, blender::compositor::context, blender::gpu::MTLContextGlobalShaderPipelineState::depth_stencil_state, blender::gpu::MTLContextGlobalShaderPipelineState::dirty_flags, GPU_CULL_BACK, GPU_CULL_FRONT, MTL_PIPELINE_STATE_DEPTHSTENCIL_FLAG, blender::gpu::MTLContextDepthStencilState::stencil_op_back_depth_fail, blender::gpu::MTLContextDepthStencilState::stencil_op_back_depthstencil_pass, blender::gpu::MTLContextDepthStencilState::stencil_op_back_stencil_fail, blender::gpu::MTLContextDepthStencilState::stencil_op_front_depth_fail, blender::gpu::MTLContextDepthStencilState::stencil_op_front_depthstencil_pass, and blender::gpu::MTLContextDepthStencilState::stencil_op_front_stencil_fail.
Referenced by mtl_stencil_set_op().
MTLStoreAction blender::gpu::mtl_store_action_from_gpu | ( | eGPUStoreOp | action | ) |
Definition at line 1491 of file mtl_framebuffer.mm.
References GPU_STOREACTION_STORE.
Referenced by blender::gpu::MTLFrameBuffer::bake_render_pass_descriptor().
|
inline |
Definition at line 61 of file gpu_state_private.hh.
References Freestyle::a, and usdtokens::b().
|
inline |
Definition at line 110 of file gpu_state_private.hh.
References Freestyle::a, and usdtokens::b().
Definition at line 56 of file gpu_state_private.hh.
References Freestyle::a, and usdtokens::b().
|
inline |
Definition at line 105 of file gpu_state_private.hh.
References Freestyle::a, and usdtokens::b().
Definition at line 66 of file gpu_state_private.hh.
References Freestyle::a, usdtokens::b(), and r.
|
inline |
Definition at line 115 of file gpu_state_private.hh.
References Freestyle::a, ARRAY_SIZE, usdtokens::b(), and r.
Definition at line 73 of file gpu_state_private.hh.
References Freestyle::a, and r.
|
inline |
Definition at line 124 of file gpu_state_private.hh.
References Freestyle::a, ARRAY_SIZE, and r.
|
inlinestatic |
Definition at line 36 of file gl_shader_interface.cc.
References blender::compositor::program, and type.
Referenced by blender::gpu::GLShaderInterface::GLShaderInterface().
|
static |
Definition at line 29 of file gpu_shader_interface.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::as_mutable_span(), blender::gpu::ShaderInput::name_hash, blender::MutableSpan< T >::size(), and src.
Referenced by blender::gpu::ShaderInterface::sort_inputs().
Definition at line 137 of file gl_shader_interface.cc.
References blender::compositor::program.
Referenced by blender::gpu::GLShaderInterface::GLShaderInterface().
Definition at line 246 of file mtl_backend.mm.
References BLI_assert, and blender::math::length().
Referenced by blender::gpu::MTLBackend::metal_is_supported().
|
inline |
Definition at line 245 of file gl_texture.hh.
Referenced by blender::gpu::GLTexture::swizzle_set().
|
static |
Definition at line 1021 of file mtl_texture.mm.
Referenced by blender::gpu::MTLTexture::swizzle_set().
|
inline |
Definition at line 452 of file mtl_texture.hh.
References BLI_assert, GPU_DATA_10_11_11_REV, GPU_DATA_FLOAT, GPU_DATA_HALF_FLOAT, GPU_DATA_INT, GPU_DATA_UBYTE, GPU_DATA_UINT, GPU_DATA_UINT_24_8, and type.
Referenced by blender::gpu::MTLTexture::update_sub().
|
inline |
Definition at line 427 of file mtl_texture.hh.
References BLI_assert, GPU_DATA_10_11_11_REV, GPU_DATA_FLOAT, GPU_DATA_HALF_FLOAT, GPU_DATA_INT, GPU_DATA_UBYTE, GPU_DATA_UINT, GPU_DATA_UINT_24_8, and type.
Referenced by blender::gpu::MTLTexture::update_sub().
|
inline |
Definition at line 321 of file gpu_texture_private.hh.
References BLI_assert_msg, GPU_RGBA8_DXT1, GPU_RGBA8_DXT3, GPU_RGBA8_DXT5, GPU_SRGB8_A8_DXT1, GPU_SRGB8_A8_DXT3, and GPU_SRGB8_A8_DXT5.
Referenced by GPU_texture_create_compressed_2d(), blender::gpu::GLTexture::init_internal(), and blender::gpu::GLTexture::update_sub().
|
inline |
Definition at line 402 of file gpu_texture_private.hh.
References BLI_assert_msg, GPU_DATA_10_11_11_REV, GPU_DATA_2_10_10_10_REV, GPU_DATA_FLOAT, GPU_DATA_INT, GPU_DATA_UBYTE, GPU_DATA_UINT, and GPU_DATA_UINT_24_8.
|
inline |
Definition at line 268 of file gpu_texture_private.hh.
References BLI_assert_msg, GPU_DEPTH24_STENCIL8, GPU_DEPTH32F_STENCIL8, GPU_DEPTH_COMPONENT16, GPU_DEPTH_COMPONENT24, GPU_DEPTH_COMPONENT32F, GPU_R11F_G11F_B10F, GPU_R16, GPU_R16F, GPU_R16I, GPU_R16UI, GPU_R32F, GPU_R32I, GPU_R32UI, GPU_R8, GPU_R8UI, GPU_RG16, GPU_RG16F, GPU_RG16I, GPU_RG16UI, GPU_RG32F, GPU_RG8, GPU_RGB10_A2, GPU_RGB16F, GPU_RGBA16, GPU_RGBA16F, GPU_RGBA32F, GPU_RGBA8, GPU_RGBA8_DXT1, GPU_RGBA8_DXT3, GPU_RGBA8_DXT5, GPU_RGBA8UI, GPU_SRGB8_A8, GPU_SRGB8_A8_DXT1, GPU_SRGB8_A8_DXT3, and GPU_SRGB8_A8_DXT5.
|
inline |
Definition at line 421 of file gpu_texture_private.hh.
References to_bytesize(), and to_component_len().
|
inlinestatic |
Definition at line 23 of file gpu_index_buffer_private.hh.
References GPU_INDEX_U32, and type.
Referenced by blender::gpu::FrameBuffer::get_bits_per_pixel(), GPU_texture_dataformat_size(), blender::gpu::MTLFrameBuffer::read(), blender::gpu::MTLTexture::read(), blender::gpu::GLTexture::read(), blender::gpu::IndexBuf::size_get(), to_bytesize(), and blender::gpu::MTLTexture::update_sub().
|
inline |
Definition at line 367 of file gpu_texture_private.hh.
References GPU_R11F_G11F_B10F, GPU_RG16, GPU_RG16F, GPU_RG16I, GPU_RG16UI, GPU_RG32F, GPU_RG32I, GPU_RG32UI, GPU_RG8, GPU_RG8I, GPU_RG8UI, GPU_RGB10_A2, GPU_RGB16F, GPU_RGBA16, GPU_RGBA16F, GPU_RGBA16I, GPU_RGBA16UI, GPU_RGBA32F, GPU_RGBA32I, GPU_RGBA32UI, GPU_RGBA8, GPU_RGBA8I, GPU_RGBA8UI, and GPU_SRGB8_A8.
Referenced by blender::gpu::FrameBuffer::get_bits_per_pixel(), GPU_texture_component_len(), blender::gpu::MTLTexture::read(), to_bytesize(), and blender::gpu::MTLTexture::update_sub().
|
inline |
Definition at line 526 of file gpu_texture_private.hh.
References GPU_DATA_10_11_11_REV, GPU_DATA_2_10_10_10_REV, GPU_DATA_FLOAT, GPU_DATA_INT, GPU_DATA_UBYTE, GPU_DATA_UINT, GPU_DATA_UINT_24_8, GPU_DEPTH24_STENCIL8, GPU_DEPTH32F_STENCIL8, GPU_DEPTH_COMPONENT16, GPU_DEPTH_COMPONENT24, GPU_DEPTH_COMPONENT32F, GPU_R11F_G11F_B10F, GPU_R16I, GPU_R16UI, GPU_R32I, GPU_R32UI, GPU_R8, GPU_R8I, GPU_R8UI, GPU_RG16I, GPU_RG16UI, GPU_RG32I, GPU_RG32UI, GPU_RG8, GPU_RG8I, GPU_RG8UI, GPU_RGB10_A2, GPU_RGBA16I, GPU_RGBA16UI, GPU_RGBA32I, GPU_RGBA32UI, GPU_RGBA8, GPU_RGBA8I, GPU_RGBA8UI, and GPU_SRGB8_A8.
Referenced by GPU_texture_create_compressed_2d(), and blender::gpu::GLTexture::init_internal().
|
inline |
Definition at line 338 of file gpu_texture_private.hh.
References GPU_DEPTH24_STENCIL8, GPU_DEPTH32F_STENCIL8, GPU_DEPTH_COMPONENT16, GPU_DEPTH_COMPONENT24, GPU_DEPTH_COMPONENT32F, GPU_FORMAT_COMPRESSED, GPU_FORMAT_DEPTH, GPU_FORMAT_DEPTH_STENCIL, GPU_FORMAT_FLOAT, GPU_FORMAT_INTEGER, GPU_R16I, GPU_R16UI, GPU_R32UI, GPU_R8UI, GPU_RG16I, GPU_RG16UI, GPU_RGBA8_DXT1, GPU_RGBA8_DXT3, GPU_RGBA8_DXT5, GPU_SRGB8_A8_DXT1, GPU_SRGB8_A8_DXT3, and GPU_SRGB8_A8_DXT5.
Referenced by blender::gpu::Texture::init_1D(), blender::gpu::Texture::init_2D(), blender::gpu::Texture::init_3D(), blender::gpu::Texture::init_buffer(), blender::gpu::Texture::init_cubemap(), and blender::gpu::Texture::init_view().
|
inline |
Definition at line 570 of file gpu_texture_private.hh.
References GPU_COLOR_BIT, GPU_DEPTH24_STENCIL8, GPU_DEPTH32F_STENCIL8, GPU_DEPTH_BIT, GPU_DEPTH_COMPONENT16, GPU_DEPTH_COMPONENT24, GPU_DEPTH_COMPONENT32F, and GPU_STENCIL_BIT.
Referenced by blender::gpu::GLTexture::copy_to().
|
inlinestatic |
Definition at line 142 of file gl_framebuffer.hh.
References GPU_COLOR_BIT, GPU_DEPTH_BIT, GPU_STENCIL_BIT, and mask().
|
inlinestatic |
Definition at line 116 of file gl_framebuffer.hh.
References ATTACHMENT, BLI_assert, and type.
Referenced by blender::gpu::GLVertBuf::bind(), blender::gpu::GLFrameBuffer::blit_to(), blender::gpu::GLTexture::clear(), blender::gpu::GLFrameBuffer::clear(), blender::gpu::GLStorageBuf::clear(), blender::gpu::GLBatch::draw(), blender::gpu::GLVertBuf::duplicate_data(), blender::gpu::GLImmediate::end(), blender::gpu::GLQueryPool::init(), blender::gpu::GLTexture::init_internal(), blender::gpu::GLStateManager::issue_barrier(), blender::gpu::GLFrameBuffer::read(), blender::gpu::GLTexture::read(), blender::gpu::GLDrawList::submit(), blender::gpu::GLTexture::update_sub(), and vbo_bind().
|
inlinestatic |
Definition at line 106 of file gl_state.hh.
References GPU_BARRIER_COMMAND, GPU_BARRIER_ELEMENT_ARRAY, GPU_BARRIER_FRAMEBUFFER, GPU_BARRIER_SHADER_IMAGE_ACCESS, GPU_BARRIER_SHADER_STORAGE, GPU_BARRIER_TEXTURE_FETCH, GPU_BARRIER_TEXTURE_UPDATE, and GPU_BARRIER_VERTEX_ATTRIB_ARRAY.
|
inline |
Definition at line 268 of file gl_texture.hh.
References BLI_assert_msg, GPU_DATA_10_11_11_REV, GPU_DATA_2_10_10_10_REV, GPU_DATA_FLOAT, GPU_DATA_INT, GPU_DATA_UBYTE, GPU_DATA_UINT, and GPU_DATA_UINT_24_8.
|
inlinestatic |
Definition at line 58 of file gl_index_buffer.hh.
References GPU_INDEX_U32, and type.
|
inlinestatic |
Definition at line 20 of file gl_primitive.hh.
References BLI_assert, GPU_PRIM_LINE_LOOP, GPU_PRIM_LINE_STRIP, GPU_PRIM_LINE_STRIP_ADJ, GPU_PRIM_LINES, GPU_PRIM_LINES_ADJ, GPU_PRIM_NONE, GPU_PRIM_POINTS, GPU_PRIM_TRI_FAN, GPU_PRIM_TRI_STRIP, GPU_PRIM_TRIS, and GPU_PRIM_TRIS_ADJ.
|
inlinestatic |
Definition at line 43 of file gl_query.hh.
References BLI_assert, GPU_QUERY_OCCLUSION, and type.
|
inlinestatic |
Definition at line 62 of file gl_vertex_buffer.hh.
References BLI_assert, GPU_USAGE_DEVICE_ONLY, GPU_USAGE_DYNAMIC, GPU_USAGE_STATIC, GPU_USAGE_STREAM, and type.
|
inlinestatic |
Definition at line 78 of file gl_vertex_buffer.hh.
References BLI_assert, GPU_COMP_F32, GPU_COMP_I10, GPU_COMP_I16, GPU_COMP_I32, GPU_COMP_I8, GPU_COMP_U16, GPU_COMP_U32, GPU_COMP_U8, and type.
|
inline |
Definitely not complete, edit according to the OpenGL specification.
Definition at line 294 of file gl_texture.hh.
References BLI_assert_msg, GPU_DEPTH24_STENCIL8, GPU_DEPTH32F_STENCIL8, GPU_DEPTH_COMPONENT16, GPU_DEPTH_COMPONENT24, GPU_DEPTH_COMPONENT32F, GPU_R11F_G11F_B10F, GPU_R16, GPU_R16F, GPU_R16I, GPU_R16UI, GPU_R32F, GPU_R32I, GPU_R32UI, GPU_R8, GPU_R8I, GPU_R8UI, GPU_RG16, GPU_RG16F, GPU_RG16I, GPU_RG16UI, GPU_RG32F, GPU_RG32I, GPU_RG32UI, GPU_RG8, GPU_RG8I, GPU_RG8UI, GPU_RGB10_A2, GPU_RGB16F, GPU_RGBA16, GPU_RGBA16F, GPU_RGBA16I, GPU_RGBA16UI, GPU_RGBA32F, GPU_RGBA32I, GPU_RGBA32UI, GPU_RGBA8, GPU_RGBA8_DXT1, GPU_RGBA8_DXT3, GPU_RGBA8_DXT5, GPU_RGBA8I, GPU_RGBA8UI, GPU_SRGB8_A8, GPU_SRGB8_A8_DXT1, GPU_SRGB8_A8_DXT3, and GPU_SRGB8_A8_DXT5.
Referenced by blender::gpu::GLTexture::clear(), blender::gpu::GLStorageBuf::clear(), blender::gpu::GLTexture::init_internal(), blender::gpu::GLTexture::read(), and blender::gpu::GLTexture::update_sub().
|
inline |
Definition at line 90 of file gl_texture.hh.
References BLI_assert_msg, GPU_DEPTH24_STENCIL8, GPU_DEPTH32F_STENCIL8, GPU_DEPTH_COMPONENT16, GPU_DEPTH_COMPONENT24, GPU_DEPTH_COMPONENT32F, GPU_R11F_G11F_B10F, GPU_R16, GPU_R16F, GPU_R16I, GPU_R16UI, GPU_R32F, GPU_R32I, GPU_R32UI, GPU_R8, GPU_R8I, GPU_R8UI, GPU_RG16, GPU_RG16F, GPU_RG16I, GPU_RG16UI, GPU_RG32F, GPU_RG32I, GPU_RG32UI, GPU_RG8, GPU_RG8I, GPU_RG8UI, GPU_RGB10_A2, GPU_RGB16F, GPU_RGBA16, GPU_RGBA16F, GPU_RGBA16I, GPU_RGBA16UI, GPU_RGBA32F, GPU_RGBA32I, GPU_RGBA32UI, GPU_RGBA8, GPU_RGBA8_DXT1, GPU_RGBA8_DXT3, GPU_RGBA8_DXT5, GPU_RGBA8I, GPU_RGBA8UI, GPU_SRGB8_A8, GPU_SRGB8_A8_DXT1, GPU_SRGB8_A8_DXT3, and GPU_SRGB8_A8_DXT5.
Referenced by blender::gpu::GLStorageBuf::clear(), blender::gpu::GLStateManager::image_bind(), and blender::gpu::GLTexture::init_internal().
|
inline |
Definition at line 221 of file gl_texture.hh.
References BLI_assert, GPU_TEXTURE_1D, GPU_TEXTURE_1D_ARRAY, GPU_TEXTURE_2D, GPU_TEXTURE_2D_ARRAY, GPU_TEXTURE_3D, GPU_TEXTURE_BUFFER, GPU_TEXTURE_CUBE, GPU_TEXTURE_CUBE_ARRAY, and type.
|
inline |
Definition at line 196 of file gl_texture.hh.
References BLI_assert, GPU_TEXTURE_1D, GPU_TEXTURE_1D_ARRAY, GPU_TEXTURE_2D, GPU_TEXTURE_2D_ARRAY, GPU_TEXTURE_3D, GPU_TEXTURE_BUFFER, GPU_TEXTURE_CUBE, GPU_TEXTURE_CUBE_ARRAY, and type.
Referenced by blender::gpu::GLTexture::init_internal().
|
inline |
Definition at line 531 of file mtl_texture.hh.
References BLI_assert, GPU_DATA_10_11_11_REV, GPU_DATA_FLOAT, GPU_DATA_INT, GPU_DATA_UINT, GPU_DATA_UINT_24_8, GPU_DEPTH24_STENCIL8, GPU_DEPTH32F_STENCIL8, GPU_DEPTH_COMPONENT16, GPU_DEPTH_COMPONENT24, GPU_DEPTH_COMPONENT32F, GPU_R11F_G11F_B10F, GPU_R16, GPU_R16F, GPU_R16I, GPU_R16UI, GPU_R32F, GPU_R32I, GPU_R32UI, GPU_R8, GPU_R8I, GPU_R8UI, GPU_RG16, GPU_RG16F, GPU_RG16I, GPU_RG16UI, GPU_RG32F, GPU_RG32I, GPU_RG32UI, GPU_RG8, GPU_RG8I, GPU_RG8UI, GPU_RGB16F, GPU_RGBA16, GPU_RGBA16F, GPU_RGBA16I, GPU_RGBA16UI, GPU_RGBA32F, GPU_RGBA32I, GPU_RGBA32UI, GPU_RGBA8, GPU_RGBA8I, GPU_RGBA8UI, and GPU_SRGB8_A8.
|
inlinestatic |
Definition at line 39 of file mtl_query.mm.
References BLI_assert, GPU_QUERY_OCCLUSION, and type.
Referenced by blender::gpu::MTLQueryPool::init().
|
inlinestatic |
Definition at line 585 of file gpu_texture_private.hh.
References BLI_assert_msg, GPU_COMP_F32, GPU_COMP_I16, GPU_COMP_I32, GPU_COMP_I8, GPU_COMP_U16, GPU_COMP_U32, GPU_COMP_U8, GPU_DEPTH_COMPONENT24, GPU_FETCH_FLOAT, GPU_FETCH_INT, GPU_FETCH_INT_TO_FLOAT, GPU_FETCH_INT_TO_FLOAT_UNIT, GPU_R16I, GPU_R16UI, GPU_R32F, GPU_R32I, GPU_R32UI, GPU_R8I, GPU_R8UI, GPU_RG16I, GPU_RG16UI, GPU_RG32F, GPU_RG32I, GPU_RG32UI, GPU_RG8I, GPU_RG8UI, GPU_RGBA16, GPU_RGBA16F, GPU_RGBA16I, GPU_RGBA16UI, GPU_RGBA32F, GPU_RGBA32I, GPU_RGBA32UI, GPU_RGBA8I, and GPU_RGBA8UI.
Referenced by GPU_texture_create_from_vertbuf().
|
inlinestatic |
Definition at line 91 of file gpu_context_private.hh.
|
inlinestatic |
Definition at line 38 of file gpu_drawlist_private.hh.
|
inlinestatic |
Definition at line 224 of file gpu_framebuffer_private.hh.
|
inlinestatic |
Definition at line 107 of file gpu_index_buffer_private.hh.
Definition at line 90 of file gpu_shader_private.hh.
|
inlinestatic |
Definition at line 58 of file gpu_storage_buffer_private.hh.
|
inlinestatic |
Definition at line 261 of file gpu_texture_private.hh.
|
inlinestatic |
Definition at line 62 of file gpu_uniform_buffer_private.hh.
|
inlinestatic |
Definition at line 107 of file gpu_vertex_buffer_private.hh.
|
inlinestatic |
Definition at line 87 of file gpu_context_private.hh.
Referenced by blender::gpu::MTLFrameBuffer::apply_state(), blender::gpu::MTLFrameBuffer::bake_render_pass_descriptor(), blender::gpu::MTLFrameBuffer::bind(), blender::gpu::MTLFrameBuffer::clear(), blender::gpu::MTLFrameBuffer::clear_attachment(), blender::gpu::MTLTexture::copy_to(), blender::gpu::Batch::elem_(), blender::gpu::GLBatch::elem_(), GPU_draw_list_append(), GPU_draw_list_discard(), GPU_draw_list_submit(), GPU_framebuffer_bind(), GPU_framebuffer_bind_loadstore(), GPU_framebuffer_bind_no_srgb(), GPU_framebuffer_blit(), GPU_framebuffer_check_valid(), GPU_framebuffer_clear(), GPU_framebuffer_config_array(), GPU_framebuffer_free(), GPU_framebuffer_multi_clear(), GPU_framebuffer_py_reference_get(), GPU_framebuffer_py_reference_set(), GPU_framebuffer_read_color(), GPU_framebuffer_read_depth(), GPU_framebuffer_recursive_downsample(), GPU_framebuffer_texture_attach_ex(), GPU_framebuffer_texture_detach(), GPU_framebuffer_viewport_get(), GPU_framebuffer_viewport_reset(), GPU_framebuffer_viewport_set(), GPU_indexbuf_init_build_on_device(), GPU_offscreen_bind(), GPU_offscreen_draw_to_screen(), GPU_shader_bind(), GPU_shader_free(), GPU_shader_get_name(), GPU_shader_get_program(), GPU_shader_transform_feedback_disable(), GPU_shader_transform_feedback_enable(), GPU_shader_uniform_vector(), GPU_shader_uniform_vector_int(), GPU_storagebuf_bind(), GPU_storagebuf_clear(), GPU_storagebuf_copy_sub_from_vertbuf(), GPU_storagebuf_free(), GPU_storagebuf_unbind(), GPU_storagebuf_update(), GPU_texture_image_bind(), GPU_texture_image_unbind(), GPU_texture_py_reference_get(), GPU_texture_py_reference_set(), GPU_uniformbuf_bind(), GPU_uniformbuf_free(), GPU_uniformbuf_unbind(), GPU_uniformbuf_update(), GPU_vertbuf_attr_fill(), GPU_vertbuf_attr_fill_stride(), GPU_vertbuf_attr_get_raw_data(), GPU_vertbuf_attr_set(), GPU_vertbuf_bind_as_ssbo(), GPU_vertbuf_bind_as_texture(), GPU_vertbuf_clear(), GPU_vertbuf_create_with_format_ex(), GPU_vertbuf_data_alloc(), GPU_vertbuf_data_len_set(), GPU_vertbuf_data_resize(), GPU_vertbuf_discard(), GPU_vertbuf_duplicate(), GPU_vertbuf_get_data(), GPU_vertbuf_get_format(), GPU_vertbuf_get_status(), GPU_vertbuf_get_vertex_alloc(), GPU_vertbuf_get_vertex_len(), GPU_vertbuf_handle_ref_add(), GPU_vertbuf_handle_ref_remove(), GPU_vertbuf_init_with_format_ex(), GPU_vertbuf_read(), GPU_vertbuf_steal_data(), GPU_vertbuf_tag_dirty(), GPU_vertbuf_unmap(), GPU_vertbuf_update_sub(), GPU_vertbuf_use(), GPU_vertbuf_vert_set(), GPU_vertbuf_wrap_handle(), blender::gpu::MTLTexture::init_internal(), blender::gpu::GLTexture::init_internal(), blender::gpu::Texture::init_view(), blender::gpu::Batch::inst_(), blender::gpu::GLBatch::inst_(), blender::gpu::MTLStateManager::texture_bind(), blender::gpu::MTLStateManager::texture_unbind(), blender::gpu::MTLStateManager::texture_unbind_all(), blender::gpu::MTLStateManager::texture_unpack_row_length_set(), blender::gpu::GLShader::transform_feedback_enable(), blender::gpu::MTLUniformBuf::update(), blender::gpu::MTLFrameBuffer::update_attachments(), blender::gpu::GLVertArray::update_bindings(), blender::gpu::MTLTexture::update_sub(), blender::gpu::Batch::verts_(), blender::gpu::GLBatch::verts_(), blender::gpu::MTLFrameBuffer::~MTLFrameBuffer(), and blender::gpu::MTLTexture::~MTLTexture().
|
inlinestatic |
Definition at line 34 of file gpu_drawlist_private.hh.
|
inlinestatic |
Definition at line 220 of file gpu_framebuffer_private.hh.
|
inlinestatic |
Definition at line 103 of file gpu_index_buffer_private.hh.
Definition at line 86 of file gpu_shader_private.hh.
|
inlinestatic |
Definition at line 54 of file gpu_storage_buffer_private.hh.
|
inlinestatic |
Definition at line 257 of file gpu_texture_private.hh.
|
inlinestatic |
Definition at line 58 of file gpu_uniform_buffer_private.hh.
|
inlinestatic |
Definition at line 103 of file gpu_vertex_buffer_private.hh.
|
inline |
Definition at line 427 of file gpu_texture_private.hh.
References ELEM, GPU_DATA_10_11_11_REV, GPU_DATA_2_10_10_10_REV, GPU_DATA_FLOAT, GPU_DATA_INT, GPU_DATA_UBYTE, GPU_DATA_UINT, GPU_DATA_UINT_24_8, GPU_DEPTH24_STENCIL8, GPU_DEPTH32F_STENCIL8, GPU_DEPTH_COMPONENT16, GPU_DEPTH_COMPONENT24, GPU_DEPTH_COMPONENT32F, GPU_R11F_G11F_B10F, GPU_R16I, GPU_R16UI, GPU_R32UI, GPU_R8, GPU_R8UI, GPU_RG16I, GPU_RG16UI, GPU_RG8, GPU_RGB10_A2, GPU_RGBA8, GPU_RGBA8UI, and GPU_SRGB8_A8.
Referenced by blender::gpu::GLTexture::clear(), blender::gpu::GLTexture::read(), and blender::gpu::GLTexture::update_sub().
|
inline |
Definition at line 462 of file gpu_texture_private.hh.
References BLI_assert_msg, ELEM, GPU_DATA_10_11_11_REV, GPU_DATA_2_10_10_10_REV, GPU_DATA_FLOAT, GPU_DATA_HALF_FLOAT, GPU_DATA_INT, GPU_DATA_UBYTE, GPU_DATA_UINT, GPU_DATA_UINT_24_8, GPU_DEPTH24_STENCIL8, GPU_DEPTH32F_STENCIL8, GPU_DEPTH_COMPONENT16, GPU_DEPTH_COMPONENT24, GPU_DEPTH_COMPONENT32F, GPU_R11F_G11F_B10F, GPU_R16, GPU_R16F, GPU_R16I, GPU_R16UI, GPU_R32F, GPU_R32I, GPU_R32UI, GPU_R8, GPU_R8I, GPU_R8UI, GPU_RG16, GPU_RG16F, GPU_RG16I, GPU_RG16UI, GPU_RG32F, GPU_RG32I, GPU_RG32UI, GPU_RG8, GPU_RG8I, GPU_RG8UI, GPU_RGB10_A2, GPU_RGB16F, GPU_RGBA16, GPU_RGBA16F, GPU_RGBA16I, GPU_RGBA16UI, GPU_RGBA32F, GPU_RGBA32I, GPU_RGBA32UI, GPU_RGBA8, GPU_RGBA8_DXT1, GPU_RGBA8_DXT3, GPU_RGBA8_DXT5, GPU_RGBA8I, GPU_RGBA8UI, GPU_SRGB8_A8, GPU_SRGB8_A8_DXT1, GPU_SRGB8_A8_DXT3, and GPU_SRGB8_A8_DXT5.
Referenced by blender::gpu::MTLTexture::read().
|
static |
Returns enabled vertex pointers as a bit-flag (one bit per attribute).
Definition at line 25 of file gl_vertex_array.cc.
References Freestyle::a, blender::gpu::ShaderInterface::attr_get(), BLI_assert, ELEM, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_FETCH_INT, GPU_FETCH_INT_TO_FLOAT, GPU_FETCH_INT_TO_FLOAT_UNIT, GPU_vertformat_attr_name_get(), input, offset, stride, to_gl(), and type.
Referenced by blender::gpu::GLVertArray::update_bindings().
|
inlinestatic |
Definition at line 83 of file gpu_context_private.hh.
Referenced by blender::gpu::GLVertBuf::bind_as_texture(), GPU_draw_list_create(), GPU_framebuffer_active_get(), GPU_framebuffer_back_get(), GPU_framebuffer_create(), GPU_shader_create_ex(), GPU_shader_create_from_info(), GPU_storagebuf_create_ex(), GPU_texture_create_view(), GPU_uniformbuf_create_ex(), GPU_uniformbuf_create_from_list(), GPU_vertbuf_calloc(), and GPU_vertbuf_duplicate().
|
inlinestatic |
Definition at line 30 of file gpu_drawlist_private.hh.
|
inlinestatic |
Definition at line 216 of file gpu_framebuffer_private.hh.
|
inlinestatic |
Definition at line 99 of file gpu_index_buffer_private.hh.
Definition at line 82 of file gpu_shader_private.hh.
|
inlinestatic |
Definition at line 50 of file gpu_storage_buffer_private.hh.
|
inlinestatic |
Definition at line 253 of file gpu_texture_private.hh.
|
inlinestatic |
Definition at line 54 of file gpu_uniform_buffer_private.hh.
|
inlinestatic |
Definition at line 99 of file gpu_vertex_buffer_private.hh.
const MTLSamplerState blender::gpu::DEFAULT_SAMPLER_STATE = {GPU_SAMPLER_DEFAULT } |
Definition at line 150 of file mtl_texture.hh.
Referenced by blender::gpu::MTLContext::get_default_sampler_state(), and blender::gpu::MTLContext::MTLContext().
thread_local NSAutoreleasePool* blender::gpu::g_autoreleasepool = nil |
Definition at line 26 of file mtl_backend.mm.
Referenced by blender::gpu::MTLBackend::is_inside_render_boundary(), blender::gpu::MTLBackend::render_begin(), and blender::gpu::MTLBackend::render_end().
thread_local int blender::gpu::g_autoreleasepool_depth = 0 |
Definition at line 27 of file mtl_backend.mm.
Referenced by blender::gpu::MTLBackend::render_begin(), and blender::gpu::MTLBackend::render_end().
GPUCapabilities blender::gpu::GCaps |
Definition at line 21 of file gpu_capabilities.cc.
Referenced by detect_workarounds(), GPU_clear_viewport_workaround(), GPU_compute_shader_support(), GPU_crappy_amd_driver(), GPU_depth_blitting_workaround(), GPU_extension_get(), GPU_extensions_len(), GPU_max_batch_indices(), GPU_max_batch_vertices(), GPU_max_compute_shader_storage_blocks(), GPU_max_shader_storage_buffer_bindings(), GPU_max_texture_layers(), GPU_max_texture_size(), GPU_max_textures(), GPU_max_textures_frag(), GPU_max_textures_geom(), GPU_max_textures_vert(), GPU_max_uniforms_frag(), GPU_max_uniforms_vert(), GPU_max_varying_floats(), GPU_max_vertex_attribs(), GPU_max_work_group_count(), GPU_max_work_group_size(), GPU_mem_stats_supported(), GPU_mip_render_workaround(), GPU_shader_image_load_store_support(), GPU_shader_storage_buffer_objects_support(), GPU_use_hq_normals_workaround(), and GPU_use_main_context_workaround().
GPUPlatformGlobal blender::gpu::GPG |
Definition at line 26 of file gpu_platform.cc.
Referenced by GPU_platform_gpu_name(), GPU_platform_renderer(), GPU_platform_support_level(), GPU_platform_support_level_key(), GPU_platform_vendor(), GPU_platform_version(), and GPU_type_matches_ex().
|
static |
Definition at line 125 of file mtl_texture.hh.
|
static |
Definition at line 124 of file mtl_texture.hh.
Referenced by blender::gpu::MTLFrameBuffer::add_color_attachment(), blender::gpu::MTLFrameBuffer::add_depth_attachment(), and blender::gpu::MTLFrameBuffer::add_stencil_attachment().
|
static |
Definition at line 11 of file mtl_query.mm.
Referenced by blender::gpu::MTLQueryPool::begin_query(), and blender::gpu::MTLQueryPool::get_occlusion_result().
|
static |
Definition at line 15 of file mtl_query.mm.
Referenced by blender::gpu::MTLQueryPool::begin_query().