|
Blender
V2.93
|
Namespaces | |
| debug | |
| GLVertArray | |
Classes | |
| class | GPUBackend |
| class | Batch |
| struct | GPUCapabilities |
| class | Context |
| class | DrawList |
| class | FrameBuffer |
| class | Immediate |
| class | IndexBuf |
| class | GPUPlatformGlobal |
| class | QueryPool |
| struct | ShaderInput |
| class | ShaderInterface |
| class | Shader |
| union | GPUState |
| union | GPUStateMutable |
| class | StateManager |
| class | Texture |
| class | UniformBuf |
| class | VertBuf |
| class | GLBackend |
| class | GLVaoCache |
| class | GLBatch |
| class | GLSharedOrphanLists |
| class | GLContext |
| class | GLDrawList |
| class | GLFrameBuffer |
| class | GLImmediate |
| class | GLIndexBuf |
| class | GLQueryPool |
| class | GLShader |
| class | GLShaderInterface |
| class | GLStateManager |
| class | GLTexture |
| class | GLUniformBuf |
| class | GLVertBuf |
| class | GPUTest |
Typedefs | |
| typedef Vector< StringRef > | DebugStack |
| typedef enum blender::gpu::GPUQueryType | GPUQueryType |
| typedef struct blender::gpu::ShaderInput | ShaderInput |
| typedef enum blender::gpu::eGPUTextureFormatFlag | eGPUTextureFormatFlag |
| typedef enum blender::gpu::eGPUTextureType | eGPUTextureType |
Enumerations | |
| enum | GPUIndexBufType { GPU_INDEX_U16 , GPU_INDEX_U32 } |
| enum | GPUQueryType { GPU_QUERY_OCCLUSION = 0 } |
| enum | eGPUTextureFormatFlag { GPU_FORMAT_DEPTH = (1 << 0) , GPU_FORMAT_STENCIL = (1 << 1) , GPU_FORMAT_INTEGER = (1 << 2) , GPU_FORMAT_FLOAT = (1 << 3) , GPU_FORMAT_COMPRESSED = (1 << 4) , GPU_FORMAT_DEPTH_STENCIL = (GPU_FORMAT_DEPTH | GPU_FORMAT_STENCIL) } |
| enum | eGPUTextureType { GPU_TEXTURE_1D = (1 << 0) , GPU_TEXTURE_2D = (1 << 1) , GPU_TEXTURE_3D = (1 << 2) , GPU_TEXTURE_CUBE = (1 << 3) , GPU_TEXTURE_ARRAY = (1 << 4) , GPU_TEXTURE_BUFFER = (1 << 5) , GPU_TEXTURE_1D_ARRAY = (GPU_TEXTURE_1D | GPU_TEXTURE_ARRAY) , GPU_TEXTURE_2D_ARRAY = (GPU_TEXTURE_2D | GPU_TEXTURE_ARRAY) , GPU_TEXTURE_CUBE_ARRAY = (GPU_TEXTURE_CUBE | GPU_TEXTURE_ARRAY) } |
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 int | indices_per_primitive (GPUPrimType prim_type) |
| 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 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) |
| 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) |
| 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) |
Platform | |
| static bool | match_renderer (StringRef renderer, const Vector< std::string > &items) |
Capabilities | |
| static bool | detect_mip_render_workaround () |
| static void | detect_workarounds () |
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) |
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 |
| typedef Vector<StringRef> blender::gpu::DebugStack |
Definition at line 33 of file gpu_debug_private.hh.
| typedef enum blender::gpu::GPUQueryType blender::gpu::GPUQueryType |
| 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 35 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 47 of file gpu_texture_private.hh.
| Enumerator | |
|---|---|
| GPU_INDEX_U16 | |
| GPU_INDEX_U32 | |
Definition at line 34 of file gpu_index_buffer_private.hh.
| Enumerator | |
|---|---|
| GPU_QUERY_OCCLUSION | |
Definition at line 30 of file gpu_query.hh.
| blender::gpu::BLI_STATIC_ASSERT | ( | sizeof(GPUStateMutable) | = =sizeof(GPUStateMutable::data), |
| "GPUStateMutable is too big." | |||
| ) |
Definition at line 41 of file gl_shader_interface.cc.
References blender::compositor::program.
Referenced by blender::gpu::GLShaderInterface::GLShaderInterface().
|
inline |
Definition at line 370 of file gl_texture.hh.
References BLI_assert.
Referenced by blender::gpu::GLFrameBuffer::read().
| 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 173 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 218 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::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, 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(), match_renderer(), blender::gpu::GPUCapabilities::mip_render_workaround, blender::gpu::GLContext::multi_bind_support, blender::gpu::GLContext::multi_draw_indirect_support, blender::gpu::GLContext::shader_draw_parameters_support, blender::gpu::GPUCapabilities::shader_image_load_store_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::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.
|
inlinestatic |
Definition at line 104 of file gl_shader_interface.cc.
References blender::compositor::program, and type.
Referenced by blender::gpu::GLShaderInterface::GLShaderInterface().
|
inlinestatic |
Definition at line 109 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 41 of file gl_backend.cc.
References blender::StringRefBase::endswith(), blender::StringRefBase::find(), and blender::StringRefBase::not_found.
Referenced by detect_workarounds().
|
inline |
Definition at line 76 of file gpu_state_private.hh.
References Freestyle::a.
|
inline |
Definition at line 125 of file gpu_state_private.hh.
References Freestyle::a.
Definition at line 71 of file gpu_state_private.hh.
References Freestyle::a, and blender::gpu::GPUState::data.
|
inline |
Definition at line 120 of file gpu_state_private.hh.
References Freestyle::a.
Definition at line 81 of file gpu_state_private.hh.
References Freestyle::a, blender::gpu::GPUState::data, and r.
|
inline |
Definition at line 130 of file gpu_state_private.hh.
References Freestyle::a, ARRAY_SIZE, blender::gpu::GPUStateMutable::data, and r.
Definition at line 88 of file gpu_state_private.hh.
References Freestyle::a, and r.
|
inline |
Definition at line 139 of file gpu_state_private.hh.
References Freestyle::a, ARRAY_SIZE, and r.
|
inlinestatic |
Definition at line 49 of file gl_shader_interface.cc.
References blender::compositor::program, and type.
Referenced by blender::gpu::GLShaderInterface::GLShaderInterface().
|
static |
Definition at line 45 of file gpu_shader_interface.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::as_mutable_span(), blender::MutableSpan< T >::copy_from(), blender::gpu::ShaderInput::name_hash, and blender::MutableSpan< T >::size().
Referenced by blender::gpu::ShaderInterface::sort_inputs().
|
inline |
Definition at line 251 of file gl_texture.hh.
Referenced by blender::gpu::GLTexture::swizzle_set().
|
inline |
Definition at line 317 of file gpu_texture_private.hh.
References BLI_assert, 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(), and blender::gpu::GLTexture::update_sub().
|
inline |
Definition at line 389 of file gpu_texture_private.hh.
References BLI_assert, 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 264 of file gpu_texture_private.hh.
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_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 408 of file gpu_texture_private.hh.
References to_bytesize(), and to_component_len().
|
inlinestatic |
Definition at line 39 of file gpu_index_buffer_private.hh.
References GPU_INDEX_U32, and type.
Referenced by GPU_texture_dataformat_size(), blender::gpu::GLTexture::read(), blender::gpu::IndexBuf::size_get(), and to_bytesize().
|
inline |
Definition at line 363 of file gpu_texture_private.hh.
References GPU_R11F_G11F_B10F, 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_RGBA8UI, and GPU_SRGB8_A8.
Referenced by GPU_texture_component_len(), and to_bytesize().
|
inline |
Definition at line 448 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_R32UI, GPU_R8, GPU_R8UI, GPU_RG16I, GPU_RG16UI, GPU_RG8, GPU_RGB10_A2, GPU_RGBA8, GPU_RGBA8UI, and GPU_SRGB8_A8.
Referenced by GPU_texture_create_compressed_2d().
|
inline |
Definition at line 334 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(), and blender::gpu::Texture::init_cubemap().
|
inline |
Definition at line 481 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 145 of file gl_framebuffer.hh.
References GPU_COLOR_BIT, GPU_DEPTH_BIT, GPU_STENCIL_BIT, and mask().
|
inlinestatic |
Definition at line 121 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::GLBatch::draw(), blender::gpu::GLVertBuf::duplicate_data(), blender::gpu::GLImmediate::end(), blender::gpu::GLQueryPool::init(), 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 115 of file gl_state.hh.
References GPU_BARRIER_SHADER_IMAGE_ACCESS, and GPU_BARRIER_TEXTURE_FETCH.
|
inline |
Definition at line 274 of file gl_texture.hh.
References BLI_assert, 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 63 of file gl_index_buffer.hh.
References GPU_INDEX_U32, and type.
|
inlinestatic |
Definition at line 36 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 59 of file gl_query.hh.
References BLI_assert, GPU_QUERY_OCCLUSION, and type.
|
inlinestatic |
Definition at line 60 of file gl_vertex_buffer.hh.
References BLI_assert, GPU_USAGE_DYNAMIC, GPU_USAGE_STATIC, GPU_USAGE_STREAM, and type.
|
inlinestatic |
Definition at line 75 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 |
Definition at line 298 of file gl_texture.hh.
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_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::GLTexture::read(), and blender::gpu::GLTexture::update_sub().
|
inline |
Definition at line 96 of file gl_texture.hh.
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_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::GLStateManager::image_bind(), and blender::gpu::GLTexture::init_internal().
|
inline |
Definition at line 227 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 202 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().
|
inlinestatic |
Definition at line 496 of file gpu_texture_private.hh.
References BLI_assert, 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 105 of file gpu_context_private.hh.
|
inlinestatic |
Definition at line 54 of file gpu_drawlist_private.hh.
|
inlinestatic |
Definition at line 217 of file gpu_framebuffer_private.hh.
Definition at line 88 of file gpu_shader_private.hh.
|
inlinestatic |
Definition at line 257 of file gpu_texture_private.hh.
|
inlinestatic |
Definition at line 77 of file gpu_uniform_buffer_private.hh.
|
inlinestatic |
Definition at line 117 of file gpu_vertex_buffer_private.hh.
|
inlinestatic |
Definition at line 101 of file gpu_context_private.hh.
Referenced by blender::gpu::Batch::elem_(), blender::gpu::GLBatch::elem_(), GPU_context_active_set(), GPU_context_discard(), GPU_draw_list_append(), GPU_draw_list_discard(), GPU_draw_list_submit(), GPU_framebuffer_bind(), 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_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_build_in_place(), GPU_indexbuf_create_subrange_in_place(), GPU_indexbuf_discard(), GPU_indexbuf_is_init(), GPU_offscreen_bind(), GPU_offscreen_draw_to_screen(), GPU_shader_bind(), GPU_shader_free(), GPU_shader_get_program(), GPU_shader_transform_feedback_disable(), GPU_shader_transform_feedback_enable(), GPU_shader_uniform_vector(), GPU_shader_uniform_vector_int(), GPU_texture_image_bind(), GPU_texture_image_unbind(), 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_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_steal_data(), GPU_vertbuf_update_sub(), GPU_vertbuf_use(), GPU_vertbuf_vert_set(), blender::gpu::GLTexture::init_internal(), blender::gpu::Batch::inst_(), blender::gpu::GLBatch::inst_(), blender::gpu::GLShader::transform_feedback_enable(), blender::gpu::GLVertArray::update_bindings(), blender::gpu::Batch::verts_(), and blender::gpu::GLBatch::verts_().
|
inlinestatic |
Definition at line 50 of file gpu_drawlist_private.hh.
|
inlinestatic |
Definition at line 213 of file gpu_framebuffer_private.hh.
|
inlinestatic |
Definition at line 104 of file gpu_index_buffer_private.hh.
Definition at line 84 of file gpu_shader_private.hh.
|
inlinestatic |
Definition at line 253 of file gpu_texture_private.hh.
|
inlinestatic |
Definition at line 73 of file gpu_uniform_buffer_private.hh.
|
inlinestatic |
Definition at line 113 of file gpu_vertex_buffer_private.hh.
|
inline |
Definition at line 414 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().
|
static |
Definition at line 42 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(), blender::gpu::ShaderInput::location, stride, to_gl(), and type.
Referenced by blender::gpu::GLVertArray::update_bindings().
|
inlinestatic |
Definition at line 97 of file gpu_context_private.hh.
Referenced by BKE_image_stamp_buf(), blf_font_wrap_apply(), blinn_specular(), BPy_IDGroup_MapDataToPy(), do_2d_mapping(), do_text_effect(), GPU_context_active_get(), GPU_context_create(), GPU_draw_list_create(), GPU_framebuffer_active_get(), GPU_framebuffer_back_get(), GPU_framebuffer_create(), GPU_indexbuf_calloc(), GPU_shader_create_ex(), GPU_uniformbuf_create_ex(), GPU_uniformbuf_create_from_list(), GPU_vertbuf_calloc(), GPU_vertbuf_duplicate(), idprop_py_from_idp_idparray(), metadata_box_height_get(), txt_find_string(), WM_cursor_grab_enable(), wm_macro_modal(), and wm_operator_invoke().
|
inlinestatic |
Definition at line 46 of file gpu_drawlist_private.hh.
|
inlinestatic |
Definition at line 209 of file gpu_framebuffer_private.hh.
|
inlinestatic |
Definition at line 100 of file gpu_index_buffer_private.hh.
Definition at line 80 of file gpu_shader_private.hh.
|
inlinestatic |
Definition at line 249 of file gpu_texture_private.hh.
|
inlinestatic |
Definition at line 69 of file gpu_uniform_buffer_private.hh.
|
inlinestatic |
Definition at line 109 of file gpu_vertex_buffer_private.hh.
| GPUCapabilities blender::gpu::GCaps |
Definition at line 37 of file gpu_capabilities.cc.
Referenced by detect_workarounds(), GPU_crappy_amd_driver(), GPU_depth_blitting_workaround(), GPU_max_texture_layers(), GPU_max_texture_size(), GPU_max_textures(), GPU_max_textures_frag(), GPU_max_textures_geom(), GPU_max_textures_vert(), GPU_mem_stats_supported(), GPU_mip_render_workaround(), GPU_shader_image_load_store_support(), GPU_use_hq_normals_workaround(), and GPU_use_main_context_workaround().
| GPUPlatformGlobal blender::gpu::GPG |
Definition at line 42 of file gpu_platform.cc.
Referenced by blender::gpu::GPUPlatformGlobal::clear(), GPU_platform_gpu_name(), GPU_platform_support_level(), GPU_platform_support_level_key(), and GPU_type_matches().