|
Blender V5.3
|
Namespaces | |
| namespace | debug |
| namespace | GLVertArray |
| namespace | render_graph |
| namespace | shader |
| namespace | tests |
Typedefs | |
| using | IndexBufPtr = std::unique_ptr<IndexBuf, IndexBufDeleter> |
| using | TopLevelASPtr = std::unique_ptr<TopLevelAS, TopLevelASDeleter> |
| using | BottomLevelASPtr = std::unique_ptr<BottomLevelAS, BottomLevelASDeleter> |
| using | VertBufPtr = std::unique_ptr<gpu::VertBuf, gpu::VertBufDeleter> |
| using | WorkInFlightPtr = std::unique_ptr<gpu::WorkInFlight, gpu::WorkInFlightDeleter> |
| using | WorkCallback = void (*)(void *) |
| using | WorkID = uint64_t |
| using | DebugStack = Vector<StringRef> |
| using | GPUPrintFormatMap = Map<uint32_t, shader::PrintfFormat> |
| using | GPUSourceDictionary = Map<StringRef, GPUSource *> |
| using | GPUFunctionDictionary = Map<StringRef, GPUFunction *> |
| using | LexerBase = shader::parser::LexerBase |
| using | NullParser = shader::parser::NullParser |
| using | Sep = Separator |
| using | TimelineValue = uint64_t |
| using | ResourceHandle = uint64_t |
| using | AttributeMask = uint16_t |
Memory Management. | |
| using | MTLTemporaryBuffer = MTLBufferRange |
Functions | |
| template<typename GPUType> | |
| GPUType | convert_normal (const float3 &src) |
| template<> | |
| int1010102_norm | convert_normal (const float3 &src) |
| template<> | |
| short4 | convert_normal (const float3 &src) |
| template<typename GPUType> | |
| void | convert_normals (Span< float3 > src, MutableSpan< GPUType > dst) |
| ENUM_OPERATORS (ShaderStage) | |
| GPUSecondaryContextData | GPU_create_secondary_context () |
| void | GPU_activate_secondary_context (const GPUSecondaryContextData &data) |
| void | GPU_deactivate_secondary_context (const GPUSecondaryContextData &data) |
| void | GPU_destroy_secondary_context (GPUSecondaryContextData &data) |
| void | imm_draw_circle_partial_wire_aspect_2d (uint pos, float x, float y, float2 radius, int nsegments, float start, float sweep) |
| void | imm_draw_circle_partial_wire_aspect_3d (uint pos, float x, float y, float z, float2 radius, int nsegments, float start, float sweep) |
| void | imm_draw_rounded_box_wire_2d (uint pos, float x, float y, float2 radius, float2 corner_radius, int nsegments) |
| void | imm_draw_rounded_box_wire_3d (uint pos, float x, float y, float2 radius, float2 corner_radius, int nsegments) |
| size_t | to_bytesize (GPUIndexBufType type) |
| int | indices_per_primitive (GPUPrimType prim_type) |
| constexpr DataFormat | to_data_format (VertAttrType format) |
| static GHOST_TDrawingContextType | ghost_context_type () |
| static GPUContext * | wrap (Context *ctx) |
| static Context * | unwrap (GPUContext *ctx) |
| static const Context * | unwrap (const GPUContext *ctx) |
| void | debug_validate_binding_image_format () |
| static void | imm_draw_circle_partial_aspect (const GPUPrimType prim_type, const uint pos, const float x, const float y, const float2 radius, const int nsegments, const float start, const float sweep) |
| static void | imm_draw_circle_partial_aspect_3d (const GPUPrimType prim_type, const uint pos, const float x, const float y, const float z, const float2 radius, const int nsegments, const float start, const float sweep) |
| static char * | create_key (GPUSupportLevel 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) |
| 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 GPUFence * | wrap (Fence *fence) |
| static Fence * | unwrap (GPUFence *fence) |
| static const Fence * | unwrap (const GPUFence *fence) |
| static Shader * | get_update_mipmap_shader (TextureFormat texture_format, bool is_layered) |
| static void | update_mipmaps_layers (Texture &texture, Shader &shader, const IndexRange layers, const TextureFormat view_format, const BitSpan modified_chunks) |
| static void | update_mipmaps (Texture &texture, Shader &shader, const TextureFormat write_format, const int partial_layer, const BitSpan modified_chunks) |
| bool | is_half_float (TextureFormat format) |
| bool | is_half_integer (TextureFormat format) |
| static GPUPixelBuffer * | wrap (PixelBuffer *pixbuf) |
| static PixelBuffer * | unwrap (GPUPixelBuffer *pixbuf) |
| static const PixelBuffer * | unwrap (const GPUPixelBuffer *pixbuf) |
| size_t | to_bytesize (TextureFormat format) |
| size_t | to_block_size (TextureFormat data_type) |
| GPUTextureFormatFlag | to_format_flag (TextureFormat format) |
| int | to_component_len (TextureFormat format) |
| size_t | to_bytesize (eGPUDataFormat data_format) |
| size_t | to_bytesize (TextureFormat tex_format, eGPUDataFormat data_format) |
| constexpr bool | validate_data_format (TextureFormat tex_format, eGPUDataFormat data_format) |
| eGPUDataFormat | to_texture_data_format (TextureFormat tex_format) |
| GPUFrameBufferBits | to_framebuffer_bits (TextureFormat tex_format) |
| static TextureFormat | to_texture_format (const GPUVertFormat *format) |
| static VertAttrType | vertex_format_combine (GPUVertCompType component_type, GPUVertFetchMode fetch_mode, uint32_t component_len) |
| bool | is_fetch_normalized (VertAttrType attr_type) |
| bool | is_fetch_float (VertAttrType attr_type) |
| template<typename GPUType> | |
| static void | convert_normals_impl (const Span< float3 > src, MutableSpan< GPUType > dst) |
| template<> | |
| void | convert_normals (const Span< float3 > src, MutableSpan< int1010102_norm > dst) |
| template<> | |
| void | convert_normals (const Span< float3 > src, MutableSpan< short4 > dst) |
| ENUM_OPERATORS (MTLPipelineStateDirtyFlag) | |
| static MTLPrimitiveTopologyClass | mtl_prim_type_to_topology_class (MTLPrimitiveType prim_type) |
| static MTLPrimitiveType | gpu_prim_type_to_metal (GPUPrimType prim_type) |
| static bool | mtl_needs_topology_emulation (GPUPrimType prim_type) |
| static bool | mtl_vertex_count_fits_primitive_type (uint32_t vertex_count, MTLPrimitiveType prim_type) |
| static size_t | padded_size (const shader::ShaderCreateInfo::PushConst &push_constant, size_t &alignment) |
| static MTLVisibilityResultMode | to_mtl_type (GPUQueryType type) |
| static MTLPackedFloat4x3 | pack_transform (const float4x4 &m) |
| MTLVertexFormat | format_resize_comp (MTLVertexFormat mtl_format, uint32_t components) |
| MTLVertexFormat | format_get_component_type (MTLVertexFormat mtl_format) |
| MTLVertexFormat | to_mtl (GPUVertCompType component_type, GPUVertFetchMode fetch_mode, uint32_t component_len) |
| int | mtl_format_component_len (MTLVertexFormat format) |
| bool | mtl_format_is_normalized (MTLVertexFormat format) |
| const char * | to_string (ShaderStage stage) |
| std::string | shader_stage_define (const ShaderStage stage) |
| static bool | is_builtin_type (StringRefNull type) |
| static StringRefNull | to_raw_type (ImageType type) |
| StringRefNull | to_wrapper_type (ImageType type) |
| static StringRefNull | to_component_type (ImageType type) |
| static const char * | get_stage_class_name (ShaderStage stage) |
| static const char * | get_stage_out_class_name (ShaderStage stage, const ShaderCreateInfo &info) |
| static const char * | get_stage_in_class_name (ShaderStage stage) |
| static const char * | get_stage_out_instance_name (ShaderStage stage) |
| static const char * | get_stage_in_instance_name (ShaderStage stage) |
| static const char * | get_stage_instance_name (ShaderStage stage) |
| static const char * | get_stage_type (ShaderStage stage) |
| static std::string | to_string (shader::Type type, SpecializationConstant::Value value) |
| static const char * | to_string (const Interpolation &interp) |
| std::string | wrap_type (StringRefNull type_name, const ShaderStage stage) |
| std::string | ref_type (const ResourceString &str, const std::string &attribute="") |
| std::string | ptr_type (const ResourceString &str) |
| static void | generate_uniforms (GeneratedStreams &generated, Span< ShaderCreateInfo::PushConst > uniforms, const ShaderStage stage) |
| static void | generate_buffer (GeneratedStreams &generated, const bool writeable, std::string type, ResourceString name, int slot, const ShaderStage stage) |
| StringRefNull | to_access (const bool is_sampler, const shader::Qualifier qualifier) |
| static void | generate_texture (GeneratedStreams &generated, bool is_sampler, shader::Qualifier qualifier, const shader::ImageType type, ResourceString name, int slot, const ShaderStage stage, const bool use_sampler_argument_buffer=false) |
| static void | generate_acceleration_structure (GeneratedStreams &generated, StringRefNull name, int slot) |
| static void | generate_resource (GeneratedStreams &generated, const ShaderCreateInfo::Resource &res, const ShaderStage stage, const ShaderCreateInfo &, const bool use_sampler_argument_buffer) |
| static void | generate_compilation_constant (GeneratedStreams &generated, const CompilationConstant &constant) |
| static void | generate_specialization_constant (GeneratedStreams &generated, const SpecializationConstant &constant, int index) |
| static void | generate_shared_variable (GeneratedStreams &generated, const ShaderCreateInfo::SharedVariable &sv) |
| static void | generate_sampler_argument_buffer (GeneratedStreams &generated, int sampler_count) |
| void | generate_resources (GeneratedStreams &generated, const ShaderStage stage, const ShaderCreateInfo &info) |
| static void | generate_vertex_attributes (GeneratedStreams &generated, const ShaderCreateInfo &info) |
| static void | generate_raster_builtin (GeneratedStreams &ss, std::stringstream &declaration, const StringRefNull type, const StringRefNull var, const StringRefNull attribute, const StringRefNull array="", const bool is_const=false) |
| static std::string | generate_raster_builtins (GeneratedStreams &ss, const ShaderCreateInfo &info, const ShaderStage stage) |
| static void | generate_inout (std::stringstream &out, StringRefNull iface_name, const StageInterfaceInfo::InOut &inout) |
| static void | generate_vertex_out (GeneratedStreams &generated, const ShaderCreateInfo &info, const ShaderStage stage) |
| static void | generate_fragment_builtin (GeneratedStreams &ss, std::stringstream &declaration, const StringRefNull type, const StringRefNull var, const StringRefNull native_type, const StringRefNull attribute, const bool is_const=false) |
| static std::string | generate_fragment_builtins (GeneratedStreams &ss, const ShaderCreateInfo &info) |
| static void | generate_subpass_inputs (GeneratedStreams &generated, const ShaderCreateInfo &info) |
| static void | generate_fragment_out (GeneratedStreams &generated, const ShaderCreateInfo &info) |
| static void | generate_vertex_interface (GeneratedStreams &generated, const ShaderCreateInfo &info) |
| static void | generate_fragment_interface (GeneratedStreams &generated, const ShaderCreateInfo &info) |
| static void | generate_stage_interfaces (GeneratedStreams &generated, const ShaderStage stage, const ShaderCreateInfo &info) |
| static void | generate_builtin (GeneratedStreams &ss, const StringRefNull wrapper_type, const StringRefNull wrapper_var, const StringRefNull native_type, const StringRefNull native_var) |
| static void | generate_builtin (GeneratedStreams &generated, const StringRefNull wrapper_type, const StringRefNull wrapper_var, const StringRefNull native_var) |
| static void | generate_instance_id (GeneratedStreams &ss) |
| static void | generate_builtins (GeneratedStreams &ss, const ShaderStage stage, const ShaderCreateInfo &info) |
| std::pair< std::string, std::string > | generate_entry_point (const ShaderCreateInfo &info, const ShaderStage stage, const StringRefNull entry_point_name) |
| uint32_t | available_buffer_slots (const ShaderCreateInfo &info) |
| void | patch_create_info_atomic_workaround (std::unique_ptr< PatchedShaderCreateInfo > &patched_info, const shader::ShaderCreateInfo &original_info) |
| uint | mtl_get_data_type_size (MTLInterfaceDataType type) |
| MTLInterfaceDataType | to_mtl_type (shader::Type type) |
| uint | mtl_get_data_type_alignment (MTLInterfaceDataType type) |
| MTLInterfaceDataType | gpu_type_to_mtl_type (GPUType type) |
| std::string | tex_data_format_to_msl_type_str (eGPUDataFormat type) |
| std::string | tex_data_format_to_msl_texture_template_type (eGPUDataFormat type) |
| MTLTextureType | to_metal_type (GPUTextureType type) |
| bool | mtl_format_is_writable (MTLPixelFormat format) |
| MTLPixelFormat | mtl_format_get_writeable_view_format (MTLPixelFormat format) |
| MTLTextureUsage | mtl_usage_from_gpu (eGPUTextureUsage usage) |
| eGPUTextureUsage | gpu_usage_from_mtl (MTLTextureUsage mtl_usage) |
| BLI_INLINE MTLTexture * | unwrap (Texture *tex) |
| BLI_INLINE Texture * | wrap (MTLTexture *texture) |
| static bool | check_texture_format_compatability (TextureFormat src_format, TextureFormat dst_format) |
| MTLVertexFormat | gpu_vertex_format_to_metal (VertAttrType vert_format) |
| MTLVertexFormat | gpu_type_to_metal_vertex_format (shader::Type type) |
| static GLenum | to_gl (GPUIndexBufType type) |
| static GLenum | to_gl (GPUPrimType prim_type) |
| static GLenum | to_gl (GPUQueryType type) |
| static GLbitfield | to_gl (GPUBarrier barrier_bits) |
| GLenum | to_gl_internal_format (TextureFormat format) |
| GLenum | to_gl_target (GPUTextureType type) |
| GLenum | to_gl_proxy (GPUTextureType type) |
| GLenum | swizzle_to_gl (const char swizzle) |
| GLenum | to_gl (eGPUDataFormat format) |
| GLenum | to_gl_data_format (TextureFormat format) |
| GLenum | channel_len_to_gl (int channel_len) |
| BLI_INLINE Texture * | wrap (GLTexture *texture) |
| static TextureFormat | get_compatible_texture_format (TextureFormat format) |
| static GLenum | to_gl (GPUUsageType type) |
| static GLenum | to_gl (GPUVertCompType type) |
| template<typename Layout> | |
| static void | def_attr (const shader::Type type, const int array_size, const uint32_t expected_alignment, const uint32_t expected_reserve, uint32_t *r_offset) |
| TEST (std140, fl) | |
| TEST (std140, _2fl) | |
| TEST (std140, _3fl) | |
| TEST (std140, _4fl) | |
| TEST (std140, fl2) | |
| TEST (std140, fl_fl2) | |
| TEST (std140, fl_vec2) | |
| TEST (std140, gpu_shader_2D_widget_base) | |
| TEST (std430, overlay_grid) | |
| TEST (std430, simple_lighting) | |
| TEST (std430, compositor_cryptomatte_matte_compute) | |
| static const char * | vk_extension_get (int index) |
| bool | GPU_vulkan_is_supported_driver (VkPhysicalDevice vk_physical_device) |
| static Vector< StringRefNull > | missing_capabilities_get (VkPhysicalDevice vk_physical_device) |
| static void | vk_restrict_loader_layers () |
| static bool | vk_instance_create_for_platform_checks (VkInstance *r_instance) |
| static GPUOSType | determine_os_type () |
| static void | init_device_list (GHOST_IContext *ghost_context) |
| VKBatch * | unwrap (Batch *batch) |
| VkImageAspectFlags | to_vk_image_aspect_flag_bits (const TextureFormat format) |
| VkImageAspectFlags | to_vk_image_aspect_flag_bits (const GPUFrameBufferBits buffers) |
| TextureFormat | to_gpu_format (const VkFormat format) |
| std::string | to_gpu_format_string (VkFormat format) |
| VkFormat | to_vk_format (const TextureFormat format) |
| static VkFormat | to_vk_format_norm (const GPUVertCompType type, const uint32_t size) |
| static VkFormat | to_vk_format_float (const GPUVertCompType type, const uint32_t size) |
| static VkFormat | to_vk_format_int (const GPUVertCompType type, const uint32_t size) |
| VkFormat | to_vk_format (const GPUVertCompType type, const uint32_t size, GPUVertFetchMode fetch_mode) |
| VkFormat | to_vk_format (const shader::Type type) |
| VkQueryType | to_vk_query_type (const GPUQueryType query_type) |
| VkImageType | to_vk_image_type (const GPUTextureType type) |
| VkImageViewType | to_vk_image_view_type (const GPUTextureType type, const eImageViewUsage view_type, VKImageViewArrayed arrayed) |
| VkComponentSwizzle | to_vk_component_swizzle (const char swizzle) |
| VkClearColorValue | to_vk_clear_color_value (const eGPUDataFormat format, const double4 data) |
| VkIndexType | to_vk_index_type (const GPUIndexBufType index_type) |
| VkPrimitiveTopology | to_vk_primitive_topology (const GPUPrimType prim_type) |
| VkCullModeFlags | to_vk_cull_mode_flags (const GPUFaceCullTest cull_test) |
| VkSamplerAddressMode | to_vk_sampler_address_mode (const GPUSamplerExtendMode extend_mode) |
| static VkDescriptorType | to_vk_descriptor_type_image (const shader::ImageType &image_type) |
| static VkDescriptorType | to_vk_descriptor_type_sampler (const shader::ImageType &image_type) |
| VkDescriptorType | to_vk_descriptor_type (const shader::ShaderCreateInfo::Resource &resource) |
| bool | vk_need_extended_usage_for_storage_image (const eGPUTextureUsage usage, const GPUTextureFormatFlag format_flag) |
| VkFormat | vk_extended_usage_storage_image_format (const VkFormat format) |
| VkImageCreateFlags | to_vk_image_create (const GPUTextureType texture_type, const GPUTextureFormatFlag format_flag, eGPUTextureUsage usage) |
| VkImageUsageFlags | to_vk_image_usage (const eGPUTextureUsage usage, const GPUTextureFormatFlag format_flag, bool use_image_host_copy) |
| BLI_INLINE VkFormat | to_vk_format (const TextureTargetFormat format) |
| template<typename T> | |
| VkObjectType | to_vk_object_type (T) |
| ENUM_OPERATORS (RenderGraphFlushFlags) | |
| BLI_INLINE bool | operator== (const VKContext &a, const VKContext &b) |
| static void | convert (UI32 &dst, const Depth32fStencil8 &src) |
| static void | convert (Depth32fStencil8 &dst, const UI32 &src) |
| template<typename DestinationType, typename SourceType> | |
| void | convert (MutableSpan< DestinationType > dst, Span< SourceType > src) |
| template<typename DestinationType, typename SourceType> | |
| void | convert_per_component (void *dst_memory, const void *src_memory, size_t buffer_size, TextureFormat device_format) |
| template<typename DestinationType, typename SourceType> | |
| void | convert_per_pixel (void *dst_memory, const void *src_memory, size_t buffer_size) |
| template<typename ComponentType> | |
| void | remap_components_3to4_front_to_back (MutableSpan< ComponentType > components, int64_t size, ComponentType component_4_value) |
| Inline remapping from 3 components to 4 components where the data is stored at the end of the buffer. | |
| static void | convert_buffer (void *dst_memory, const void *src_memory, size_t buffer_size, TextureFormat device_format, ConversionType type) |
| constexpr GPULoadStore | default_load_store () |
| static VKFrameBuffer * | unwrap (gpu::FrameBuffer *framebuffer) |
| const char * | to_string (VkResult result) |
| static VkDeviceSize | new_buffer_size (VkDeviceSize sub_buffer_size) |
| static VKIndexBuffer * | unwrap (IndexBuf *index_buffer) |
| static VKIndexBuffer & | unwrap (IndexBuf &index_buffer) |
| template<typename LayoutT> | |
| static uint32_t | element_stride (const shader::Type type) |
| template<typename LayoutT> | |
| static uint32_t | array_stride (const shader::Type type) |
| template<typename LayoutT> | |
| static void | align (const shader::Type &type, const int32_t array_size, uint32_t *r_offset) |
| template<typename LayoutT> | |
| static void | reserve (const shader::Type type, int32_t array_size, uint32_t *r_offset) |
| template<typename LayoutT> | |
| static void | align_end_of_struct (uint32_t *r_offset) |
| constexpr VkExternalMemoryHandleTypeFlags | vk_external_memory_handle_type () |
| static VKPixelBuffer * | unwrap (PixelBuffer *pixel_buffer) |
| template<typename LayoutT> | |
| static VKPushConstants::Layout::PushConstant | init_constant (const shader::ShaderCreateInfo::PushConst &push_constant, const ShaderInput &shader_input, uint32_t *r_offset) |
| template<typename LayoutT> | |
| uint32_t | struct_size (Span< shader::ShaderCreateInfo::PushConst > push_constants) |
| template<typename LayoutT> | |
| void | init_struct (const shader::ShaderCreateInfo &info, const VKShaderInterface &interface, Vector< VKPushConstants::Layout::PushConstant > &r_struct, uint32_t *r_offset) |
| static const VKTopLevelAS & | unwrap (const TopLevelAS &blas) |
| static const VKBottomLevelAS & | unwrap (const BottomLevelAS &blas) |
| std::ostream & | operator<< (std::ostream &os, const VKDiscardPool &discard_pool) |
| static std::string | main_function_wrapper (std::string &pre_main, std::string &post_main) |
| static std::string | combine_sources (Span< StringRefNull > sources) |
| static Type | to_component_type (const Type &type) |
| static StageInterfaceInfo * | find_interface_by_name (const Span< ShaderCreateInfo::StageInterfaceInfoHandle > ifaces, const StringRefNull name) |
| static void | declare_emit_vertex (std::stringstream &ss) |
| static VKShader & | unwrap (Shader &shader) |
| static VKShader * | unwrap (Shader *shader) |
| static std::optional< std::string > | cache_dir_get () |
| static VKBindType | to_bind_type (shader::ShaderCreateInfo::Resource::BindType bind_type) |
| static int32_t | shader_input_index (const ShaderInput *shader_inputs, const ShaderInput *shader_input) |
| BLI_INLINE VKStorageBuffer * | unwrap (StorageBuf *storage_buffer) |
| static VkImageAspectFlags | to_vk_image_aspect_single_bit (const VkImageAspectFlags format, bool stencil) |
| static float | memory_priority (const eGPUTextureUsage texture_usage) |
| BLI_INLINE Texture * | wrap (VKTexture *texture) |
| static VKResourceWithHandle< VkImage > | create_and_bind_vk_image (const VKImageInfo &info, const std::string &name_str) |
| VkMemoryRequirements | get_image_memory_requirements (const VkImageCreateInfo &image_info) |
| static std::string | to_string_handle (uint64_t vk_handle) |
| std::string | to_string (VkBuffer vk_handle) |
| const char * | to_string (const VkAttachmentLoadOp vk_attachment_load_op) |
| const char * | to_string (const VkAttachmentStoreOp vk_attachment_store_op) |
| const char * | to_string (const VkFilter vk_filter) |
| const char * | to_string (const VkImageLayout vk_image_layout) |
| const char * | to_string (const VkIndexType vk_index_type) |
| const char * | to_string (const VkObjectType vk_object_type) |
| const char * | to_string (const VkPipelineBindPoint vk_pipeline_bind_point) |
| const char * | to_string (const VkResolveModeFlagBits vk_resolve_mode_flag_bits) |
| const char * | to_string (const VkSubpassContents vk_subpass_contents) |
| std::string | to_string_vk_access_flags (const VkAccessFlags vk_access_flags) |
| std::string | to_string_vk_dependency_flags (const VkDependencyFlags vk_dependency_flags) |
| std::string | to_string_vk_image_aspect_flags (const VkImageAspectFlags vk_image_aspect_flags) |
| std::string | to_string_vk_pipeline_stage_flags (const VkPipelineStageFlags vk_pipeline_stage_flags) |
| std::string | to_string_vk_rendering_flags (const VkRenderingFlags vk_rendering_flags) |
| std::string | to_string_vk_shader_stage_flags (const VkShaderStageFlags vk_shader_stage_flags) |
| std::string | to_string (const VkBufferCopy &vk_buffer_copy, int indentation_level) |
| std::string | to_string (const VkBufferImageCopy &vk_buffer_image_copy, int indentation_level) |
| std::string | to_string (const VkBufferMemoryBarrier &vk_buffer_memory_barrier, int indentation_level) |
| std::string | to_string (const VkClearAttachment &vk_clear_attachment, int indentation_level) |
| std::string | to_string (const VkClearDepthStencilValue &vk_clear_depth_stencil_value, int indentation_level) |
| std::string | to_string (const VkClearRect &vk_clear_rect, int indentation_level) |
| std::string | to_string (const VkExtent2D &vk_extent2_d, int indentation_level) |
| std::string | to_string (const VkExtent3D &vk_extent3_d, int indentation_level) |
| std::string | to_string (const VkImageBlit &vk_image_blit, int indentation_level) |
| std::string | to_string (const VkImageCopy &vk_image_copy, int indentation_level) |
| std::string | to_string (const VkImageMemoryBarrier &vk_image_memory_barrier, int indentation_level) |
| std::string | to_string (const VkImageSubresourceLayers &vk_image_subresource_layers, int indentation_level) |
| std::string | to_string (const VkImageSubresourceRange &vk_image_subresource_range, int indentation_level) |
| std::string | to_string (const VkMemoryBarrier &vk_memory_barrier, int indentation_level) |
| std::string | to_string (const VkOffset2D &vk_offset2_d, int indentation_level) |
| std::string | to_string (const VkOffset3D &vk_offset3_d, int indentation_level) |
| std::string | to_string (const VkRect2D &vk_rect2_d, int indentation_level) |
| std::string | to_string (const VkRenderPassBeginInfo &vk_render_pass_begin_info, int indentation_level) |
| std::string | to_string (const VkRenderingAttachmentInfo &vk_rendering_attachment_info, int indentation_level) |
| std::string | to_string (const VkRenderingInfo &vk_rendering_info, int indentation_level) |
| BLI_INLINE UniformBuf * | wrap (VKUniformBuffer *uniform_buffer) |
| BLI_INLINE VKVertexBuffer * | unwrap (VertBuf *vertex_buffer) |
| BLI_INLINE VKVertexBuffer & | unwrap (VertBuf &vertex_buffer) |
Utilities | |
Allow querying information about the format enum values. | |
| int | to_bytesize (const DataFormat format) |
| int | format_component_len (const DataFormat format) |
ShaderCompiler | |
| static ThreadQueueWorkPriority | to_work_priority (CompilationPriority priority) |
Shader Debug Printf | |
| void | printf_begin (Context *ctx) |
| void | printf_end (Context *ctx) |
Capabilities | |
| static const char * | mtl_extensions_get_null (int) |
| bool | supports_barycentric_whitelist (id< MTLDevice > device) |
| bool | is_apple_sillicon (id< MTLDevice > device) |
| static int | get_num_performance_cpu_cores (id< MTLDevice > device) |
| static int | get_num_efficiency_cpu_cores (id< MTLDevice > device) |
| static const char * | gl_extension_get (int i) |
| static void | detect_workarounds () |
Swap-chain management and Metal presentation. | |
| void | present (MTLRenderPassDescriptor *blit_descriptor, id< MTLRenderPipelineState > blit_pso, id< MTLTexture > swapchain_texture, id< CAMetalDrawable > drawable) |
XR blitting function called from the GHOST Metal XR binding. | |
| void | xr_blit (id< MTLTexture > metal_xr_texture, int ofsx, int ofsy, int width, int height) |
Global Context State | |
| static void | bind_atomic_workaround_buffer (StringRefNull texture_name, MTLTexture *gpu_tex, MTLShaderInterface &shader_interface, MTLShader &active_shader) |
| template<typename CommandEncoderT> | |
| static void | bind_sampler_argument_buffer (CommandEncoderT enc, MTLSamplerArray &sampler_array, Map< MTLSamplerArray, gpu::MTLBuffer * > &sampler_buffers_cache, MTLShaderInterface &shader_interface, id< MTLFunction > mtl_function, MTLBindingCache< CommandEncoderT > &bindings) |
| template<typename CommandEncoderT> | |
| static void | ensure_texture_bindings (MTLContext &ctx, MTLShader &shader, CommandEncoderT enc, MTLBindingCache< CommandEncoderT > &bindings, id< MTLFunction > mtl_function, uint16_t stage_ima_mask=uint16_t(-1), uint64_t stage_tex_mask=uint64_t(-1)) |
| template<typename CommandEncoderT> | |
| static void | ensure_push_constant (MTLContext &ctx, MTLShader &shader, CommandEncoderT enc, MTLBindingCache< CommandEncoderT > &bindings, uint32_t stage_buf_mask=uint32_t(-1)) |
| template<typename CommandEncoderT> | |
| static void | ensure_buffer_bindings (MTLContext &ctx, MTLShader &shader, CommandEncoderT enc, MTLBindingCache< CommandEncoderT > &bindings, uint32_t stage_buf_mask=uint32_t(-1)) |
Texture State Management | |
| static MTLSamplerAddressMode | to_mtl_type (GPUSamplerExtendMode wrap_mode) |
METAL API Resources and Validation | |
| MTLLoadAction | mtl_load_action_from_gpu (GPULoadOp action) |
| MTLStoreAction | mtl_store_action_from_gpu (GPUStoreOp action) |
Index buffer optimization and topology emulation | |
| template<typename T> | |
| static uint32_t | populate_optimized_tri_strip_buf (Span< T > original_data, MutableSpan< T > output_data, uint32_t input_index_len) |
| template<typename T> | |
| static uint32_t | populate_emulated_tri_fan_buf (Span< T > original_data, MutableSpan< T > output_data, uint32_t input_index_len) |
Shader stage creation. | |
| ::MTLCompileOptions * | get_compile_options (const bool use_subpass_input, const bool use_texture_atomic, const bool use_ray_query) |
Shader specialization common utilities. | |
| ::MTLFunctionConstantValues * | populate_specialization_constant_values (const shader::SpecializationConstants &shader_constants, const SpecializationStateDescriptor &specialization_descriptor) |
Bake Pipeline State Objects | |
| static uint32_t | get_buffers_binding_mask (NSArray< MTLArgument * > *args) |
| static uint16_t | get_images_binding_mask (NSArray< MTLArgument * > *args) |
| static uint64_t | get_samplers_binding_mask (NSArray< MTLArgument * > *args) |
State setting functions | |
| static MTLCompareFunction | gpu_depth_function_to_metal (GPUDepthTest depth_func) |
| static MTLCompareFunction | gpu_stencil_func_to_metal (GPUStencilTest stencil_func) |
| static void | mtl_stencil_set_op_separate (MTLContext *context, GPUFaceCullTest 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 (TextureFormat tex_format) |
| size_t | 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) |
| static bool | parse_version (const std::string &version, const std::string &format, Vector< int > &r_version) |
| static bool | is_bad_AMD_driver (const char *version_cstr) |
Enums Conversion | |
| static GLenum | to_gl (const GPUAttachmentType type) |
| static GLbitfield | to_gl (const GPUFrameBufferBits 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) |
Creation / Destruction | |
| static Type | gpu_type_from_gl_type (int gl_type) |
Sampler objects | |
| static GLenum | to_gl (GPUSamplerExtendMode extend_mode) |
Vertex Array Bindings | |
| static uint16_t | vbo_bind (const ShaderInterface *interface, const GPUVertFormat *format, uint v_first, uint v_len, const bool use_instancing) |
API | |
| bool | needs_conversion (eGPUDataFormat host_format, TextureFormat host_texture_format, TextureFormat device_format) |
| Check if data conversion is needed when uploading host_format to a device_format. | |
| void | convert_host_to_device (void *dst_buffer, const void *src_buffer, size_t buffer_size, eGPUDataFormat host_format, TextureFormat host_texture_format, TextureFormat device_format) |
| void | convert_device_to_host (void *dst_buffer, const void *src_buffer, size_t buffer_size, eGPUDataFormat host_format, TextureFormat host_texture_format, TextureFormat device_format) |
Load/Store operations | |
| static VkAttachmentLoadOp | to_vk_attachment_load_op (GPULoadOp load_op) |
| static VkAttachmentStoreOp | to_vk_attachment_store_op (GPUStoreOp store_op) |
| static void | set_load_store (VkRenderingAttachmentInfo &r_rendering_attachment, eGPUDataFormat data_format, const GPULoadStore &ls) |
Blit operations | |
| static void | blit_aspect (VKContext &context, VKTexture &dst_texture, VKTexture &src_texture, int dst_offset_x, int dst_offset_y, VkImageAspectFlags image_aspect) |
Graphics pipelines | |
| static VkPipeline | create_graphics_pipeline_no_libs (const VKGraphicsInfo &graphics_info, VkPipelineCache vk_pipeline_cache, VkPipeline vk_pipeline_base, StringRefNull name) |
| static VkPipeline | create_graphics_pipeline_libs (const VKGraphicsInfo &graphics_info, VkPipelineCache vk_pipeline_cache, VkPipeline vk_pipeline_base, StringRefNull name) |
Create Info | |
| static const char * | to_string (const Interpolation &interp) |
| static const char * | to_string (const Type &type) |
| static const char * | to_string (const TextureFormat &type) |
| static const char * | to_string (const PrimitiveIn &layout) |
| static const char * | to_string (const PrimitiveOut &layout) |
| static const char * | to_string (const DepthWrite &value) |
| static void | print_image_type (std::ostream &os, const ImageType &type, const ShaderCreateInfo::Resource::BindType bind_type) |
| static std::ostream & | print_qualifier (std::ostream &os, const Qualifier &qualifiers) |
| static void | print_resource (std::ostream &os, const VKDescriptorSet::Location location, const ShaderCreateInfo::Resource &res, const ShaderCreateInfo &) |
| static void | print_resource (std::ostream &os, const VKShaderInterface &shader_interface, const ShaderCreateInfo::Resource &res, const ShaderCreateInfo &info) |
| static void | print_resource (std::ostream &os, const VKShaderInterface &shader_interface, const ShaderCreateInfo::Resource &res, const ShaderCreateInfo &info, StringRefNull res_frequency, StringRefNull &active_info_name) |
| int | get_location_count (const Type &type) |
| static void | print_interface_as_attributes (std::ostream &os, const std::string &prefix, const StageInterfaceInfo &iface, int &location, const StringRefNull &suffix) |
| static void | print_interface_as_struct (std::ostream &os, const std::string &prefix, const StageInterfaceInfo &iface, int &location, const StringRefNull &suffix) |
| static void | print_interface (std::ostream &os, const std::string &prefix, const StageInterfaceInfo &iface, int &location, const StringRefNull &suffix="") |
SPIR-V disk cache | |
| static uint32_t | spirv_target_version_get () |
| static bool | read_spirv_from_disk (VKShaderModule &shader_module, StringRef hash_extra) |
| static void | write_spirv_to_disk (VKShaderModule &shader_module) |
Compilation | |
| static StringRef | to_stage_name (shaderc_shader_kind stage) |
| static void | spirv_inject_op_string (const Span< uint32_t > &spirv_in, Vector< uint32_t > &spirv_out, StringRef name, uint32_t glsl_version) |
| static std::string | patch_line_directives (std::string source) |
| static bool | compile_ex (shaderc::Compiler &compiler, VKShader &shader, shaderc_shader_kind stage, VKShaderModule &shader_module) |
Variables | |
| constexpr uint32_t | RESTART_INDEX = 0xFFFFFFFF |
| GPUCapabilities | GCaps = {} |
| static CLG_LogRef | LOG = {"gpu.framebuffer"} |
| GPUPlatformGlobal | GPG |
| static CLG_LogRef | LOG = {"gpu.metal"} |
| NSAutoreleasePool * | g_autoreleasepool = nil |
| int | g_autoreleasepool_depth = 0 |
| static CLG_LogRef | LOG = {"gpu.metal"} |
| static CLG_LogRef | LOG = {"gpu.metal"} |
| static CLG_LogRef | LOG = {"gpu.metal"} |
| static CLG_LogRef | LOG = {"gpu.metal"} |
| static CLG_LogRef | LOG = {"gpu.metal"} |
| static const size_t | VISIBILITY_COUNT_PER_BUFFER = 512 |
| static const size_t | VISIBILITY_RESULT_SIZE_IN_BYTES = 8 |
| static CLG_LogRef | LOG = {"gpu.metal"} |
| static CLG_LogRef | LOG = {"gpu.metal"} |
| static const int | MTL_MAX_MIPMAP_COUNT = 15 |
| static const int | MTL_MAX_FBO_ATTACHED = 16 |
| const MTLSamplerState | DEFAULT_SAMPLER_STATE = {GPUSamplerState::default_sampler() } |
| static CLG_LogRef | LOG = {"gpu.metal"} |
| static CLG_LogRef | LOG = {"gpu.metal"} |
| static CLG_LogRef | LOG = {"gpu.opengl"} |
| constexpr uint16_t | HALF_VALUE_1 = 0x3c00 |
| static CLG_LogRef | LOG = {"gpu.vulkan"} |
| static CLG_LogRef | LOG = {"gpu.vulkan"} |
| constexpr size_t | DEFAULT_INTERNAL_BUFFER_SIZE = 4 * 1024 * 1024 |
| static CLG_LogRef | LOG = {"gpu.vulkan"} |
| static CLG_LogRef | LOG = {"gpu.vulkan"} |
| static constexpr int | BIND_SPACE_IMAGE_OFFSET = 512 |
Platform/driver/device information | |
| constexpr int32_t | PCI_ID_NVIDIA = 0x10de |
| constexpr int32_t | PCI_ID_INTEL = 0x8086 |
| constexpr int32_t | PCI_ID_AMD = 0x1002 |
| constexpr int32_t | PCI_ID_ATI = 0x1022 |
| constexpr int32_t | PCI_ID_APPLE = 0x106b |
Texture Formats | |
| enum class | TextureFormat : uint8_t { Invalid = 0 } |
| enum class | TextureTargetFormat : uint8_t { Invalid = 0 } |
| enum class | TextureWriteFormat : uint8_t { Invalid = 0 } |
| constexpr DataFormat | to_data_format (TextureFormat format) |
| constexpr TextureFormat | to_texture_format (TextureTargetFormat format) |
| constexpr TextureFormat | to_texture_format (TextureWriteFormat format) |
Type-safe identifier management. | |
| enum class | DirectiveType : char { Define = TokenType::Define , Undef = TokenType::Undef , Line = TokenType::Line , If = TokenType::If , Ifdef = TokenType::Ifdef , Ifndef = TokenType::Ifndef , Elif = TokenType::Elif , Else = TokenType::Else , Endif = TokenType::Endif , Pragma = TokenType::Pragma , Other = TokenType::Word } |
| static DirectiveType | increment_to_next_conditional (Directive &dir) |
| static Directive | find_next_matching_conditional (Directive dir) |
| PruningStream & | operator<< (PruningStream &dst, const TokenStream &src) |
| PruningStream & | operator<< (PruningStream &dst, const TokenRange< Token > &range) |
| PruningStream & | operator<< (PruningStream &dst, const Token &tok) |
Data Conversion | |
| using | UI8 = ComponentValue<uint8_t> |
| using | UI16 = ComponentValue<uint16_t> |
| using | UI32 = ComponentValue<uint32_t> |
| using | I8 = ComponentValue<int8_t> |
| using | I16 = ComponentValue<int16_t> |
| using | I32 = ComponentValue<int32_t> |
| using | F16 = ComponentValue<uint16_t> |
| using | F32 = ComponentValue<float> |
| using | FLOAT3 = PixelValue<float3> |
| using | FLOAT4 = PixelValue<ColorSceneLinear4f<eAlpha::Premultiplied>> |
| constexpr uint32_t | MASK_10_BITS = 0b1111111111 |
| constexpr uint32_t | MASK_11_BITS = 0b11111111111 |
| constexpr uint8_t | SHIFT_B = 22 |
| constexpr uint8_t | SHIFT_G = 11 |
| constexpr uint8_t | SHIFT_R = 0 |
| static uint32_t | float_to_uint32_t (float value) |
| static float | uint32_t_to_float (uint32_t value) |
| template<typename StorageType> | |
| void | convert (SignedNormalized< StorageType > &dst, const F32 &src) |
| template<typename StorageType> | |
| void | convert (F32 &dst, const SignedNormalized< StorageType > &src) |
| template<typename StorageType> | |
| void | convert (UnsignedNormalized< StorageType > &dst, const F32 &src) |
| template<typename StorageType> | |
| void | convert (F32 &dst, const UnsignedNormalized< StorageType > &src) |
| template<typename StorageType> | |
| void | convert (UnsignedNormalized< StorageType > &, const UI32 &) |
| template<typename StorageType> | |
| void | convert (UI32 &dst, const UnsignedNormalized< StorageType > &src) |
| template<typename DestinationType, typename SourceType> | |
| void | convert (DestinationType &dst, const SourceType &src) |
| static void | convert (FLOAT3 &dst, const HALF4 &src) |
| static void | convert (FLOAT3 &dst, const FLOAT4 &src) |
| static void | convert (FLOAT4 &dst, const FLOAT3 &src) |
| static void | convert (F16 &dst, const UI8 &src) |
| static void | convert (UI8 &dst, const F16 &src) |
| static void | convert (FLOAT3 &dst, const B10F_G11G_R11F &src) |
| static void | convert (B10F_G11G_R11F &dst, const FLOAT3 &src) |
Floating point conversions | |
| using | FormatF32 = FloatingPointFormat<true, 23, 8> |
| using | FormatF11 = FloatingPointFormat<false, 6, 5> |
| using | FormatF10 = FloatingPointFormat<false, 5, 5> |
| template<typename DestinationFormat, typename SourceFormat, bool ClampNegativeToZero = true> | |
| uint32_t | convert_float_formats (uint32_t value) |
This file contains API that the GHOST_ContextVK can invoke directly.
| using blender::gpu::AttributeMask = uint16_t |
Definition at line 23 of file vk_vertex_attribute_object.hh.
| using blender::gpu::BottomLevelASPtr = std::unique_ptr<BottomLevelAS, BottomLevelASDeleter> |
Definition at line 105 of file GPU_ray_tracing.hh.
| using blender::gpu::DebugStack = Vector<StringRef> |
Definition at line 18 of file gpu_debug_private.hh.
| using blender::gpu::F16 = ComponentValue<uint16_t> |
Definition at line 718 of file vk_data_conversion.cc.
| using blender::gpu::F32 = ComponentValue<float> |
Definition at line 719 of file vk_data_conversion.cc.
| using blender::gpu::FLOAT3 = PixelValue<float3> |
Definition at line 720 of file vk_data_conversion.cc.
Definition at line 721 of file vk_data_conversion.cc.
| using blender::gpu::FormatF10 = FloatingPointFormat<false, 5, 5> |
Definition at line 151 of file vk_data_conversion.hh.
| using blender::gpu::FormatF11 = FloatingPointFormat<false, 6, 5> |
Definition at line 150 of file vk_data_conversion.hh.
| using blender::gpu::FormatF32 = FloatingPointFormat<true, 23, 8> |
Definition at line 149 of file vk_data_conversion.hh.
| using blender::gpu::GPUFunctionDictionary = Map<StringRef, GPUFunction *> |
Definition at line 129 of file gpu_shader_dependency.cc.
Definition at line 127 of file gpu_shader_dependency.cc.
| using blender::gpu::GPUSourceDictionary = Map<StringRef, GPUSource *> |
Definition at line 128 of file gpu_shader_dependency.cc.
| using blender::gpu::I16 = ComponentValue<int16_t> |
Definition at line 716 of file vk_data_conversion.cc.
| using blender::gpu::I32 = ComponentValue<int32_t> |
Definition at line 717 of file vk_data_conversion.cc.
| using blender::gpu::I8 = ComponentValue<int8_t> |
Definition at line 715 of file vk_data_conversion.cc.
| using blender::gpu::IndexBufPtr = std::unique_ptr<IndexBuf, IndexBufDeleter> |
Definition at line 321 of file GPU_index_buffer.hh.
Definition at line 23 of file gpu_shader_preprocessor.cc.
Definition at line 208 of file mtl_memory.hh.
Definition at line 24 of file gpu_shader_preprocessor.cc.
| using blender::gpu::ResourceHandle = uint64_t |
Definition at line 68 of file vk_common.hh.
| using blender::gpu::Sep = Separator |
Definition at line 54 of file mtl_shader_generate.cc.
| using blender::gpu::TimelineValue = uint64_t |
Definition at line 39 of file vk_common.hh.
| using blender::gpu::TopLevelASPtr = std::unique_ptr<TopLevelAS, TopLevelASDeleter> |
Definition at line 104 of file GPU_ray_tracing.hh.
| using blender::gpu::UI16 = ComponentValue<uint16_t> |
Definition at line 713 of file vk_data_conversion.cc.
| using blender::gpu::UI32 = ComponentValue<uint32_t> |
Definition at line 714 of file vk_data_conversion.cc.
| using blender::gpu::UI8 = ComponentValue<uint8_t> |
Definition at line 712 of file vk_data_conversion.cc.
| using blender::gpu::VertBufPtr = std::unique_ptr<gpu::VertBuf, gpu::VertBufDeleter> |
Definition at line 86 of file GPU_vertex_buffer.hh.
| using blender::gpu::WorkCallback = void (*)(void *) |
Definition at line 24 of file GPU_worker.hh.
| using blender::gpu::WorkID = uint64_t |
Definition at line 25 of file GPU_worker.hh.
| using blender::gpu::WorkInFlightPtr = std::unique_ptr<gpu::WorkInFlight, gpu::WorkInFlightDeleter> |
Definition at line 24 of file GPU_work_in_flight.hh.
| Enumerator | |
|---|---|
| APPLE_GPU_UNKNOWN | |
| APPLE_GPU_M1 | |
| APPLE_GPU_M2 | |
| APPLE_GPU_M3 | |
Definition at line 36 of file mtl_capabilities.hh.
|
strong |
| Enumerator | |
|---|---|
| PASS_THROUGH | No conversion needed, result can be directly read back to host memory. |
| PASS_THROUGH_D32F_S8 | Pass through (ignores the stencil component). |
| FLOAT_TO_UNORM8 | |
| UNORM8_TO_FLOAT | |
| FLOAT_TO_SNORM8 | |
| SNORM8_TO_FLOAT | |
| FLOAT_TO_UNORM16 | |
| UNORM16_TO_FLOAT | |
| FLOAT_TO_SNORM16 | |
| SNORM16_TO_FLOAT | |
| FLOAT_TO_UNORM32 | |
| UNORM32_TO_FLOAT | |
| UI32_TO_UI16 | |
| UI16_TO_UI32 | |
| UI32_TO_UI8 | |
| UI8_TO_UI32 | |
| I32_TO_I16 | |
| I16_TO_I32 | |
| I32_TO_I8 | |
| I8_TO_I32 | |
| HALF_TO_UI8 | Convert device 16F to UINT |
| UI8_TO_HALF | |
| HALF_TO_FLOAT | Convert device 16F to floats. |
| FLOAT_TO_HALF | |
| FLOAT_TO_B10F_G11F_R11F | |
| B10F_G11F_R11F_TO_FLOAT | |
| FLOAT3_TO_HALF4 | |
| HALF4_TO_FLOAT3 | |
| FLOAT3_TO_FLOAT4 | |
| FLOAT4_TO_FLOAT3 | |
| UINT_TO_DEPTH32F_STENCIL8 | |
| DEPTH32F_STENCIL8_TO_UINT | |
| UNSUPPORTED | The requested conversion isn't supported. |
Definition at line 23 of file vk_data_conversion.cc.
|
strong |
Collection of all data formats. Vertex formats and Texture formats are both subset of this.
| Enumerator | |
|---|---|
| Invalid | |
Definition at line 128 of file GPU_format.hh.
|
strong |
| Enumerator | |
|---|---|
| Define | |
| Undef | |
| Line | |
| If | |
| Ifdef | |
| Ifndef | |
| Elif | |
| Else | |
| Endif | |
| Pragma | |
| Other | |
Definition at line 313 of file gpu_shader_preprocessor.cc.
|
strong |
Based on the usage of an Image View a different image view type should be created.
When using a GPU_TEXTURE_CUBE as an frame buffer attachment it will be used as a GPU_TEXTURE_2D_ARRAY. eg only a single side of the cube map will be attached. But when bound as a shader resource the cube-map will be used.
| Enumerator | |
|---|---|
| ShaderBinding | |
| Attachment | |
Definition at line 48 of file vk_common.hh.
| Enumerator | |
|---|---|
| GPU_INDEX_U16 | |
| GPU_INDEX_U32 | |
Definition at line 26 of file GPU_index_buffer.hh.
| Enumerator | |
|---|---|
| GPU_QUERY_OCCLUSION | |
Definition at line 17 of file gpu_query.hh.
| Enumerator | |
|---|---|
| GPU_SAMPLER_TYPE_FLOAT | |
| GPU_SAMPLER_TYPE_INT | |
| GPU_SAMPLER_TYPE_UINT | |
| GPU_SAMPLER_TYPE_DEPTH | |
| GPU_SAMPLER_TYPE_MAX | |
Definition at line 87 of file gpu_texture_private.hh.
| Enumerator | |
|---|---|
| GPU_FORMAT_DEPTH | |
| GPU_FORMAT_STENCIL | |
| GPU_FORMAT_INTEGER | |
| GPU_FORMAT_NORMALIZED_INTEGER | |
| GPU_FORMAT_FLOAT | |
| GPU_FORMAT_COMPRESSED | |
| GPU_FORMAT_SRGB | |
| GPU_FORMAT_SIGNED | |
| GPU_FORMAT_DEPTH_STENCIL | |
Definition at line 47 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 70 of file gpu_texture_private.hh.
Definition at line 15 of file mtl_shader_interface_type.hh.
Definition at line 343 of file mtl_context.hh.
| Enumerator | |
|---|---|
| NONE | |
| RENEW_RENDER_GRAPH | |
| SUBMIT | |
| WAIT_FOR_SUBMISSION | |
| WAIT_FOR_COMPLETION | |
Definition at line 33 of file vk_context.hh.
|
strong |
| Enumerator | |
|---|---|
| Unknown | |
| Warning | |
| Error | |
| Note | |
Definition at line 245 of file gpu_shader_private.hh.
|
strong |
| Enumerator | |
|---|---|
| VERTEX | |
| FRAGMENT | |
| COMPUTE | |
| ANY | |
Definition at line 82 of file GPU_common_types.hh.
|
strong |
Formats compatible with read-only texture.
| Enumerator | |
|---|---|
| Invalid | |
Definition at line 41 of file GPU_texture.hh.
|
strong |
Formats compatible with frame-buffer attachments.
| Enumerator | |
|---|---|
| Invalid | |
Definition at line 140 of file GPU_texture.hh.
|
strong |
Formats compatible with shader load/store.
| Enumerator | |
|---|---|
| Invalid | |
Definition at line 211 of file GPU_texture.hh.
|
strong |
| Enumerator | |
|---|---|
| Invalid | |
Definition at line 25 of file GPU_vertex_format.hh.
Bind types to bind resources to a shader.
Keep in sync with #gpu::shader::ShaderCreateInfo::Resource::BindType. We add the term INPUT_ATTACHMENT as it is stored as a sub-pass input in the shader create info.
TODO: Investigate if TEXEL_BUFFER can be added as well.
| Enumerator | |
|---|---|
| UNIFORM_BUFFER | |
| STORAGE_BUFFER | |
| SAMPLER | |
| IMAGE | |
| ACCELERATION_STRUCTURE | |
| INPUT_ATTACHMENT | |
Definition at line 34 of file vk_shader_interface.hh.
|
strong |
| Enumerator | |
|---|---|
| DONT_CARE | |
| NOT_ARRAYED | |
| ARRAYED | |
Definition at line 55 of file vk_common.hh.
|
strong |
Additional modifiers when requesting image views.
| Enumerator | |
|---|---|
| DEFAULT | |
| NO_SWIZZLING | |
| FOR_STORAGE_IMAGE | |
Definition at line 27 of file vk_texture.hh.
|
static |
Move the r_offset to the next alignment where the given type+array_size can be reserved.
'type': The type that needs to be aligned. 'array_size': The array_size that needs to be aligned. (0=no array). 'r_offset': After the call it will point to the byte where the reservation can happen.
Definition at line 82 of file vk_memory_layout.hh.
References blender::ceil_to_multiple_ul().
Referenced by align_end_of_struct(), init_constant(), and struct_size().
|
static |
Update 'r_offset' to be aligned to the end of the struct.
Call this function when all attributes have been added to make sure that the struct size is correct.
Definition at line 114 of file vk_memory_layout.hh.
References align(), and blender::gpu::shader::float4_t.
|
static |
Definition at line 67 of file vk_memory_layout.hh.
References array_stride().
Referenced by array_stride(), and reserve().
| uint32_t blender::gpu::available_buffer_slots | ( | const ShaderCreateInfo & | info | ) |
Definition at line 1497 of file mtl_shader_generate.cc.
References blender::gpu::shader::ShaderCreateInfo::Resource::ACCELERATION_STRUCTURE, available_buffer_slots(), blender::gpu::shader::ShaderCreateInfo::batch_resources_, blender::gpu::shader::ShaderCreateInfo::builtins_combined(), blender::gpu::shader::ShaderCreateInfo::geometry_resources_, blender::gpu::shader::ShaderCreateInfo::Resource::IMAGE, MTL_ACCELERATION_STRUCTURE_SLOT, MTL_PUSH_CONSTANT_BUFFER_SLOT, MTL_SAMPLER_ARGUMENT_BUFFER_SLOT, MTL_SSBO_SLOT_OFFSET, MTL_UBO_SLOT_OFFSET, blender::gpu::shader::ShaderCreateInfo::pass_resources_, blender::gpu::shader::ShaderCreateInfo::push_constants_, blender::gpu::shader::ShaderCreateInfo::Resource::SAMPLER, blender::gpu::shader::ShaderCreateInfo::Resource::STORAGE_BUFFER, blender::gpu::shader::ShaderCreateInfo::Resource::UNIFORM_BUFFER, and blender::gpu::shader::USE_SAMPLER_ARG_BUFFER.
Referenced by available_buffer_slots(), and patch_create_info_atomic_workaround().
|
static |
Definition at line 715 of file mtl_context.mm.
References blender::gpu::MTLStorageBuf::bind(), bind_atomic_workaround_buffer(), blender::gpu::ShaderInput::binding, blender::BLI_assert(), blender::gpu::MTLTexture::get_storagebuf(), blender::gpu::MTLTexture::get_texture_metadata_ptr(), blender::GPU_TEXTURE_USAGE_ATOMIC, blender::gpu::ShaderInput::location, blender::gpu::ShaderInterface::ssbo_get(), blender::gpu::ShaderInterface::uniform_get(), blender::gpu::MTLShader::uniform_int(), and blender::gpu::Texture::usage_get().
Referenced by bind_atomic_workaround_buffer(), and ensure_texture_bindings().
|
static |
Definition at line 733 of file mtl_context.mm.
References blender::gpu::MTLBufferPool::allocate(), blender::gpu::MTLBindingCache< CommandEncoderT >::bind_buffer(), bind_sampler_argument_buffer(), blender::bitscan_reverse_uint64(), blender::BLI_assert(), blender::gpu::ShaderInterface::enabled_tex_mask_, blender::gpu::MTLShaderInterface::ensure_argument_encoder(), blender::gpu::MTLBuffer::flush(), blender::gpu::MTLContext::get_global_memory_manager(), blender::gpu::MTLBuffer::get_metal_buffer(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_or_add_cb(), blender::max_uu(), blender::gpu::MTLSamplerArray::mtl_sampler, MTL_SAMPLER_ARGUMENT_BUFFER_SLOT, and blender::gpu::MTLSamplerArray::num_samplers.
Referenced by bind_sampler_argument_buffer(), and ensure_texture_bindings().
References BLI_STATIC_ASSERT().
Referenced by BLI_STATIC_ASSERT(), and BLI_STATIC_ASSERT().
| blender::gpu::BLI_STATIC_ASSERT | ( | sizeof(GPUStateMutable) | = =sizeof(GPUStateMutable::data), |
| "GPUStateMutable is too big." | ) |
References BLI_STATIC_ASSERT(), and blender::gpu::GPUStateMutable::data.
|
static |
Definition at line 414 of file vk_framebuffer.cc.
References blit_aspect(), blender::clamp_i(), blender::gpu::VKTexture::copy_to(), blender::gpu::VKTexture::device_format_get(), blender::gpu::render_graph::VKBlitImageData::dst_image, blender::gpu::render_graph::VKBlitImageData::filter, blender::gpu::Texture::height_get(), blender::IndexRange::IndexRange(), blender::gpu::render_graph::VKBlitImageData::region, blender::gpu::render_graph::VKBlitImageData::src_image, blender::gpu::VKTexture::vk_image_handle(), and blender::gpu::Texture::width_get().
Referenced by blit_aspect(), and blender::gpu::VKFrameBuffer::blit_to().
Definition at line 32 of file gl_shader_interface.cc.
References block_binding().
Referenced by block_binding(), and blender::gpu::GLShaderInterface::GLShaderInterface().
|
static |
Definition at line 41 of file vk_shader_compiler.cc.
References blender::BKE_appdir_folder_caches(), blender::BLI_dir_create_recursive(), cache_dir_get(), FILE_MAX, blender::result, and SEP_STR.
Referenced by blender::gpu::VKShaderCompiler::cache_dir_clear_old(), cache_dir_get(), read_spirv_from_disk(), and write_spirv_to_disk().
|
inline |
Assume UNORM/Float target. Used with #glReadPixels.
Definition at line 358 of file gl_texture.hh.
References BLI_assert_msg, and channel_len_to_gl().
Referenced by channel_len_to_gl(), and blender::gpu::GLFrameBuffer::read().
|
static |
Definition at line 24 of file mtl_texture_pool.mm.
References check_texture_format_compatability(), GPU_FORMAT_COMPRESSED, GPU_FORMAT_DEPTH_STENCIL, to_bytesize(), and to_format_flag().
Referenced by blender::gpu::MTLTexturePool::acquire_texture_impl(), and check_texture_format_compatability().
|
static |
Definition at line 500 of file vk_shader.cc.
References combine_sources().
Referenced by combine_sources().
|
static |
Definition at line 329 of file vk_shader_compiler.cc.
References blender::begin(), blender::gpu::VKShaderModule::combined_sources, blender::gpu::VKShaderModule::compilation_result, compile_ex(), blender::gpu::VKBackend::device, blender::gpu::Shader::dump_source_to_disk(), blender::G, blender::G_DEBUG_GPU_RENDERDOC, blender::G_DEBUG_GPU_SHADER_DEBUG_INFO, blender::G_DEBUG_GPU_SHADER_NO_DCE, blender::gpu::VKBackend::get(), blender::gpu::VKDevice::glsl_patch_version_get(), blender::GPU_DEVICE_QUALCOMM, blender::GPU_DRIVER_ANY, blender::GPU_OS_ANY, blender::GPU_type_matches(), options, blender::gpu::VKShaderModule::original_sources, patch_line_directives(), read_spirv_from_disk(), blender::gpu::Shader::run_preprocessor(), blender::gpu::VKShaderModule::spirv_binary, spirv_inject_op_string(), to_stage_name(), and write_spirv_to_disk().
Referenced by compile_ex(), and blender::gpu::VKShaderCompiler::compile_module().
|
static |
Definition at line 918 of file vk_data_conversion.cc.
References b, convert(), convert_float_formats(), float_to_uint32_t(), SHIFT_B, SHIFT_G, SHIFT_R, and blender::gpu::PixelValue< InnerType >::value.
|
static |
Definition at line 934 of file vk_data_conversion.cc.
References convert(), float, and blender::gpu::ComponentValue< InnerType >::value.
| void blender::gpu::convert | ( | DestinationType & | dst, |
| const SourceType & | src ) |
Definition at line 850 of file vk_data_conversion.cc.
References convert().
Definition at line 884 of file vk_data_conversion.cc.
References convert(), blender::math::float_to_half(), blender::gpu::ComponentValue< InnerType >::value, and blender::gpu::UnsignedNormalized< InnerType >::value.
| void blender::gpu::convert | ( | F32 & | dst, |
| const SignedNormalized< StorageType > & | src ) |
| void blender::gpu::convert | ( | F32 & | dst, |
| const UnsignedNormalized< StorageType > & | src ) |
Definition at line 830 of file vk_data_conversion.cc.
References convert(), float, blender::gpu::UnsignedNormalized< InnerType >::scalar(), blender::gpu::ComponentValue< InnerType >::value, and blender::gpu::UnsignedNormalized< InnerType >::value.
|
static |
Definition at line 908 of file vk_data_conversion.cc.
References convert(), convert_float_formats(), MASK_10_BITS, MASK_11_BITS, SHIFT_B, SHIFT_G, SHIFT_R, uint32_t_to_float(), and blender::gpu::PixelValue< InnerType >::value.
Definition at line 869 of file vk_data_conversion.cc.
References blender::ColorRGBA< ChannelStorageType, Space, Alpha >::b, convert(), blender::ColorRGBA< ChannelStorageType, Space, Alpha >::g, blender::ColorRGBA< ChannelStorageType, Space, Alpha >::r, and blender::gpu::PixelValue< InnerType >::value.
Definition at line 862 of file vk_data_conversion.cc.
References convert(), blender::gpu::HALF4::get_b(), blender::gpu::HALF4::get_g(), blender::gpu::HALF4::get_r(), blender::math::half_to_float(), and blender::gpu::PixelValue< InnerType >::value.
Definition at line 876 of file vk_data_conversion.cc.
References blender::ColorRGBA< ChannelStorageType, Space, Alpha >::a, blender::ColorRGBA< ChannelStorageType, Space, Alpha >::b, convert(), blender::ColorRGBA< ChannelStorageType, Space, Alpha >::g, blender::ColorRGBA< ChannelStorageType, Space, Alpha >::r, and blender::gpu::PixelValue< InnerType >::value.
| void blender::gpu::convert | ( | MutableSpan< DestinationType > | dst, |
| Span< SourceType > | src ) |
Definition at line 941 of file vk_data_conversion.cc.
References blender::BLI_assert(), convert(), blender::IndexRange::IndexRange(), blender::MutableSpan< T >::size(), and blender::Span< T >::size().
| void blender::gpu::convert | ( | SignedNormalized< StorageType > & | dst, |
| const F32 & | src ) |
Definition at line 805 of file vk_data_conversion.cc.
References blender::clamp_i(), convert(), blender::gpu::SignedNormalized< InnerType >::delta(), blender::gpu::SignedNormalized< InnerType >::max(), max, blender::gpu::SignedNormalized< InnerType >::scalar(), blender::gpu::ComponentValue< InnerType >::value, and blender::gpu::SignedNormalized< InnerType >::value.
Referenced by convert(), convert(), convert(), convert(), convert(), convert(), convert(), convert(), convert(), convert(), convert(), convert(), convert(), convert(), convert(), convert(), convert(), convert_per_component(), and convert_per_pixel().
|
static |
Definition at line 928 of file vk_data_conversion.cc.
References convert(), and blender::gpu::ComponentValue< InnerType >::value.
| void blender::gpu::convert | ( | UI32 & | dst, |
| const UnsignedNormalized< StorageType > & | src ) |
Definition at line 842 of file vk_data_conversion.cc.
References convert(), blender::gpu::UnsignedNormalized< InnerType >::scalar(), blender::gpu::ComponentValue< InnerType >::value, and blender::gpu::UnsignedNormalized< InnerType >::value.
Definition at line 893 of file vk_data_conversion.cc.
References convert(), blender::math::half_to_float(), blender::gpu::ComponentValue< InnerType >::value, and blender::gpu::UnsignedNormalized< InnerType >::value.
| void blender::gpu::convert | ( | UnsignedNormalized< StorageType > & | , |
| const UI32 & | ) |
Definition at line 837 of file vk_data_conversion.cc.
References BLI_assert_unreachable, and convert().
| void blender::gpu::convert | ( | UnsignedNormalized< StorageType > & | dst, |
| const F32 & | src ) |
Definition at line 820 of file vk_data_conversion.cc.
References convert(), max, blender::max_ff(), blender::gpu::UnsignedNormalized< InnerType >::scalar(), blender::gpu::ComponentValue< InnerType >::value, and blender::gpu::UnsignedNormalized< InnerType >::value.
|
static |
Definition at line 992 of file vk_data_conversion.cc.
References B10F_G11F_R11F_TO_FLOAT, convert_buffer(), convert_per_component(), convert_per_pixel(), blender::MutableSpan< T >::data(), blender::Span< T >::data(), DEPTH32F_STENCIL8_TO_UINT, FLOAT3_TO_FLOAT4, FLOAT3_TO_HALF4, FLOAT4_TO_FLOAT3, FLOAT_TO_B10F_G11F_R11F, FLOAT_TO_HALF, blender::math::float_to_half_make_finite_array(), FLOAT_TO_SNORM16, FLOAT_TO_SNORM8, FLOAT_TO_UNORM16, FLOAT_TO_UNORM32, FLOAT_TO_UNORM8, HALF4_TO_FLOAT3, HALF_TO_FLOAT, blender::math::half_to_float_array(), HALF_TO_UI8, HALF_VALUE_1, I16_TO_I32, I32_TO_I16, I32_TO_I8, I8_TO_I32, blender::IndexRange::IndexRange(), blender::threading::parallel_for(), PASS_THROUGH, PASS_THROUGH_D32F_S8, remap_components_3to4_front_to_back(), blender::IndexRange::size(), blender::MutableSpan< T >::slice(), blender::Span< T >::slice(), SNORM16_TO_FLOAT, SNORM8_TO_FLOAT, blender::IndexRange::start(), to_bytesize(), to_component_len(), UI16_TO_UI32, UI32_TO_UI16, UI32_TO_UI8, UI8_TO_HALF, UI8_TO_UI32, UINT_TO_DEPTH32F_STENCIL8, UNORM16_TO_FLOAT, UNORM32_TO_FLOAT, UNORM8_TO_FLOAT, and UNSUPPORTED.
Referenced by convert_buffer(), convert_device_to_host(), and convert_host_to_device().
| void blender::gpu::convert_device_to_host | ( | void * | dst_buffer, |
| const void * | src_buffer, | ||
| size_t | buffer_size, | ||
| eGPUDataFormat | host_format, | ||
| TextureFormat | host_texture_format, | ||
| TextureFormat | device_format ) |
Convert device buffer to host buffer.
| dst_buffer | host buffer |
| src_buffer | device buffer. |
| buffer_size | number of pixels to convert from the start of the given buffer. |
| host_format | format of the host buffer |
| host_texture_format | texture format of the host buffer. |
| device_format | format of the device buffer. |
Definition at line 1200 of file vk_data_conversion.cc.
References BLI_assert_msg, convert_buffer(), convert_device_to_host(), host_to_device(), reversed(), and UNSUPPORTED.
Referenced by convert_device_to_host(), blender::gpu::VKTexture::read_sub(), blender::gpu::tests::TEST(), and blender::gpu::tests::TEST().
| uint32_t blender::gpu::convert_float_formats | ( | uint32_t | value | ) |
Convert between low precision floating (including 32 bit floats).
The input and output values are bits (uint32_t) as this function does a bit-wise operations to convert between the formats. Additional conversion rules can be applied to the conversion function. Due to the implementation the compiler would make an optimized version depending on the actual possibilities.
| DestinationFormat | FloatingPointFormat of the value that is converted to. |
| SourceFormat | FloatingPointFormat of the value that is converted from. |
| ClampNegativeToZero | Should negative values be clamped to zero when DestinationFormat doesn't contain a sign bit. Also -Inf will be clamped to zero. |
When set to false and DestinationFormat doesn't contain a sign bit the value will be made absolute.
Definition at line 180 of file vk_data_conversion.hh.
References convert_float_formats(), is_zero(), and blender::result.
Referenced by convert(), convert(), convert_float_formats(), blender::gpu::tests::TEST(), and blender::gpu::tests::TEST().
| void blender::gpu::convert_host_to_device | ( | void * | dst_buffer, |
| const void * | src_buffer, | ||
| size_t | buffer_size, | ||
| eGPUDataFormat | host_format, | ||
| TextureFormat | host_texture_format, | ||
| TextureFormat | device_format ) |
Convert host buffer to device buffer.
| dst_buffer | device buffer. |
| src_buffer | host buffer. |
| buffer_size | number of pixels to convert from the start of the given buffer. |
| host_format | format of the host buffer. |
| host_texture_format | texture format of the host buffer. |
| device_format | format of the device buffer. |
Definition at line 1188 of file vk_data_conversion.cc.
References blender::BLI_assert(), convert_buffer(), convert_host_to_device(), host_to_device(), and UNSUPPORTED.
Referenced by convert_host_to_device(), blender::gpu::tests::TEST(), blender::gpu::tests::TEST(), and blender::gpu::VKTexture::update_sub().
Definition at line 26 of file GPU_attribute_convert.hh.
References convert_normal().
|
inline |
Definition at line 21 of file GPU_attribute_convert.hh.
References convert_normal().
| void blender::gpu::convert_normals | ( | const Span< float3 > | src, |
| MutableSpan< int1010102_norm > | dst ) |
Definition at line 27 of file gpu_vertex_format_normals.cc.
References convert_normals(), and convert_normals_impl().
| void blender::gpu::convert_normals | ( | const Span< float3 > | src, |
| MutableSpan< short4 > | dst ) |
Definition at line 31 of file gpu_vertex_format_normals.cc.
References convert_normals(), and convert_normals_impl().
| void blender::gpu::convert_normals | ( | Span< float3 > | src, |
| MutableSpan< GPUType > | dst ) |
References convert_normals().
Referenced by convert_normals(), convert_normals(), convert_normals(), blender::draw::extract_corner_normals_mesh(), blender::draw::extract_face_dot_normals_mesh(), blender::draw::extract_face_normals_mesh(), blender::draw::extract_vert_normals_mesh(), and blender::draw::extract_vert_normals_mesh().
|
static |
Definition at line 18 of file gpu_vertex_format_normals.cc.
References convert_normals_impl(), blender::Span< T >::index_range(), and blender::threading::parallel_for().
Referenced by convert_normals(), convert_normals(), and convert_normals_impl().
| void blender::gpu::convert_per_component | ( | void * | dst_memory, |
| const void * | src_memory, | ||
| size_t | buffer_size, | ||
| TextureFormat | device_format ) |
Definition at line 950 of file vk_data_conversion.cc.
References convert(), convert_per_component(), blender::MutableSpan< T >::MutableSpan(), blender::Span< T >::Span(), and to_component_len().
Referenced by convert_buffer(), and convert_per_component().
| void blender::gpu::convert_per_pixel | ( | void * | dst_memory, |
| const void * | src_memory, | ||
| size_t | buffer_size ) |
Definition at line 964 of file vk_data_conversion.cc.
References convert(), convert_per_pixel(), blender::MutableSpan< T >::MutableSpan(), and blender::Span< T >::Span().
Referenced by convert_buffer(), and convert_per_pixel().
|
static |
Definition at line 67 of file vk_texture_pool.cc.
References blender::gpu::render_graph::VKResourceStateTracker::add_aliased_image(), blender::gpu::VKImageInfo::allocation, blender::BLI_assert(), create_and_bind_vk_image(), blender::gpu::VKImageInfo::create_info, blender::gpu::VKBackend::device, blender::gpu::VKDevice::functions, blender::gpu::VKBackend::get(), blender::gpu::VKDevice::mem_allocator_get(), blender::gpu::VKMemorySegment::offset, blender::gpu::VKDevice::resources, blender::gpu::VKImageInfo::segment, UNUSED_VARS_NDEBUG, and blender::gpu::VKDevice::vk_handle().
Referenced by blender::gpu::VKTexturePool::acquire_texture_impl(), create_and_bind_vk_image(), and blender::gpu::VKImageCache::get_or_create().
|
static |
Definition at line 59 of file gpu_platform.cc.
References blender::BLI_dynstr_appendf(), blender::BLI_dynstr_free(), blender::BLI_dynstr_get_cstring(), blender::BLI_dynstr_new(), blender::BLI_string_replace_char(), and create_gpu_name().
Referenced by create_gpu_name(), and blender::gpu::GPUPlatformGlobal::init().
|
static |
Definition at line 171 of file vk_pipeline_pool.cc.
References blender::BLI_time_now_seconds(), blender::StringRefNull::c_str(), CLOG_DEBUG, CLOG_TRACE, create_graphics_pipeline_libs(), blender::gpu::VKBackend::device, blender::gpu::VKGraphicsInfo::fragment_out, blender::gpu::VKDevice::functions, blender::gpu::VKBackend::get(), blender::gpu::VKPipelinePool::get_or_create_fragment_output_lib(), blender::gpu::VKPipelinePool::get_or_create_shaders_lib(), blender::gpu::VKPipelinePool::get_or_create_vertex_input_lib(), LOG, blender::gpu::debug::object_label(), blender::gpu::VKDevice::pipelines, blender::gpu::VKGraphicsInfo::shaders, blender::gpu::VKGraphicsInfo::vertex_in, blender::gpu::VKDevice::vk_handle(), and blender::gpu::VKGraphicsInfo::Shaders::vk_pipeline_layout.
Referenced by create_graphics_pipeline_libs().
|
static |
Definition at line 144 of file vk_pipeline_pool.cc.
References blender::BLI_time_now_seconds(), blender::gpu::VKGraphicsPipelineCreateInfoBuilder::build_full(), blender::StringRefNull::c_str(), CLOG_DEBUG, create_graphics_pipeline_no_libs(), blender::gpu::VKBackend::device, blender::gpu::VKDevice::functions, blender::gpu::VKBackend::get(), LOG, blender::gpu::debug::object_label(), blender::gpu::VKGraphicsPipelineCreateInfoBuilder::vk_graphics_pipeline_create_info, and blender::gpu::VKDevice::vk_handle().
Referenced by create_graphics_pipeline_no_libs().
|
static |
Definition at line 35 of file gpu_platform.cc.
References blender::BLI_dynstr_append(), blender::BLI_dynstr_appendf(), blender::BLI_dynstr_free(), blender::BLI_dynstr_get_cstring(), blender::BLI_dynstr_new(), blender::BLI_string_replace_char(), create_key(), blender::GPU_SUPPORT_LEVEL_LIMITED, and blender::GPU_SUPPORT_LEVEL_SUPPORTED.
Referenced by create_key(), and blender::gpu::GPUPlatformGlobal::init().
| void blender::gpu::debug_validate_binding_image_format | ( | ) |
Definition at line 193 of file gpu_debug.cc.
References BLI_assert_unreachable, debug_validate_binding_image_format(), blender::G, blender::G_DEBUG_GPU, blender::gpu::Context::get(), GPU_MAX_IMAGE, blender::GPU_texture_format_name(), blender::gpu::StateManager::image_formats, blender::gpu::ShaderInterface::image_formats_, blender::gpu::Shader::interface, Invalid, blender::gpu::Context::shader, blender::gpu::Context::state_manager, and to_texture_format().
Referenced by debug_validate_binding_image_format(), blender::GPU_batch_draw_advanced(), blender::GPU_batch_draw_indirect(), blender::GPU_batch_multi_draw_indirect(), blender::GPU_compute_dispatch(), and blender::GPU_compute_dispatch_indirect().
|
static |
Definition at line 1141 of file vk_shader.cc.
References declare_emit_vertex().
Referenced by declare_emit_vertex(), and blender::gpu::VKShader::geometry_interface_declare().
|
static |
Definition at line 12 of file vk_memory_layout_test.cc.
References def_attr(), and blender::EXPECT_EQ().
Referenced by def_attr(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), and TEST().
|
constexpr |
The default load store action when not using load stores.
Definition at line 22 of file vk_framebuffer.cc.
References default_load_store(), blender::GPU_LOADACTION_LOAD, and blender::GPU_STOREACTION_STORE.
Referenced by blender::gpu::VKFrameBuffer::bind(), default_load_store(), blender::gpu::VKFrameBuffer::rendering_ensure(), and blender::gpu::VKFrameBuffer::VKFrameBuffer().
|
static |
Definition at line 415 of file gl_backend.cc.
References blender::BLI_windows_get_directx_driver_version(), blender::BLI_windows_get_directx_intel_driver_info(), blender::gpu::GLContext::debug_layer_support, blender::gpu::GLContext::debug_layer_workaround, blender::gpu::GPUCapabilities::depth_blitting_workaround, blender::gpu::GLContext::derivative_control_support, detect_workarounds(), blender::gpu::GLContext::direct_state_access_support, blender::gpu::GLContext::framebuffer_fetch_support, blender::gpu::GPUCapabilities::frontbuffer_read_workaround, blender::G, blender::G_DEBUG_GPU_FORCE_WORKAROUNDS, blender::G_DEBUG_GPU_NO_TEXTURE_POOL, GCaps, blender::Gen12, blender::Gen9AndOlder, blender::GPU_DEVICE_ATI, blender::GPU_DEVICE_INTEL, blender::GPU_DEVICE_INTEL_UHD, blender::GPU_DEVICE_QUALCOMM, blender::GPU_DRIVER_ANY, blender::GPU_DRIVER_OFFICIAL, blender::GPU_DRIVER_OPENSOURCE, blender::GPU_OS_ANY, blender::GPU_OS_UNIX, blender::GPU_OS_WIN, blender::GPU_platform_get_intel_arch(), blender::GPU_type_matches(), blender::gpu::GPUCapabilities::hdr_viewport_support, is_bad_AMD_driver(), L, blender::gpu::GLContext::layered_rendering_support, match_renderer(), blender::gpu::GPUCapabilities::minimum_per_vertex_stride, blender::gpu::GLContext::multi_bind_image_support, blender::gpu::GLContext::multi_bind_support, blender::gpu::GLContext::native_barycentric_support, blender::gpu::shader::metadata::printf, blender::gpu::GPUCapabilities::srgb_write_view_support, blender::gpu::GPUCapabilities::stencil_classify_buffer_workaround, blender::gpu::GPUCapabilities::stencil_export_support, blender::gpu::GLContext::texture_barrier_support, blender::gpu::GLContext::texture_filter_anisotropic_support, blender::gpu::GPUCapabilities::texture_pool_workaround, blender::gpu::GLContext::unused_fb_slot_workaround, blender::gpu::GPUCapabilities::use_hq_normals_workaround, blender::gpu::GPUCapabilities::use_main_context_workaround, blender::gpu::GLContext::vertex_shader_layer_support, and blender::gpu::GLContext::vertex_shader_viewport_index_support.
Referenced by detect_workarounds().
|
static |
Definition at line 394 of file vk_backend.cc.
References determine_os_type(), blender::GPU_OS_MAC, blender::GPU_OS_UNIX, and blender::GPU_OS_WIN.
Referenced by determine_os_type(), and blender::gpu::VKBackend::platform_init().
|
static |
Definition at line 62 of file vk_memory_layout.hh.
References element_stride().
Referenced by element_stride(), and reserve().
|
static |
Definition at line 912 of file mtl_context.mm.
References blender::gpu::MTLTopLevelAS::acceleration_structure(), blender::gpu::MTLContextGlobalShaderPipelineState::acceleration_structure_bindings, blender::gpu::MTLBindingCache< CommandEncoderT >::bind_buffer(), blender::gpu::MTLShaderInterface::enabled_accel_mask(), blender::gpu::ShaderInterface::enabled_ssbo_mask_, blender::gpu::ShaderInterface::enabled_ubo_mask_, ensure_buffer_bindings(), blender::gpu::MTLStorageBuf::get_metal_buffer(), blender::gpu::MTLUniformBuf::get_metal_buffer(), blender::bits::iter_1_indices(), blender::gpu::MTLTopLevelAS::make_resident(), MTL_ACCELERATION_STRUCTURE_SLOT, MTL_LOG_ERROR, MTL_SSBO_SLOT_OFFSET, MTL_UBO_SLOT_OFFSET, blender::gpu::MTLShaderInterface::name_at_offset(), blender::gpu::ShaderInput::name_offset, blender::gpu::MTLContext::pipeline_state, blender::gpu::MTLStorageBufferBinding::ssbo, blender::gpu::MTLContextGlobalShaderPipelineState::ssbo_bindings, blender::gpu::ShaderInterface::ssbo_get(), blender::gpu::MTLAccelerationStructureBinding::tlas, blender::gpu::MTLUniformBufferBinding::ubo, blender::gpu::MTLContextGlobalShaderPipelineState::ubo_bindings, and blender::gpu::ShaderInterface::ubo_get().
Referenced by blender::gpu::MTLContext::compute_dispatch(), blender::gpu::MTLContext::compute_dispatch_indirect(), ensure_buffer_bindings(), and blender::gpu::MTLContext::ensure_render_pipeline_state().
|
static |
Definition at line 887 of file mtl_context.mm.
References blender::gpu::MTLBindingCache< CommandEncoderT >::bind_bytes(), blender::gpu::MTLPushConstantBuf::data(), ensure_push_constant(), blender::gpu::MTLContext::get_scratch_buffer_manager(), MTL_PUSH_CONSTANT_BUFFER_SLOT, and blender::gpu::MTLPushConstantBuf::size().
Referenced by blender::gpu::MTLContext::compute_dispatch(), blender::gpu::MTLContext::compute_dispatch_indirect(), ensure_push_constant(), and blender::gpu::MTLContext::ensure_render_pipeline_state().
|
static |
Definition at line 787 of file mtl_context.mm.
References blender::gpu::MTLContextGlobalShaderPipelineState::active_shader, bind_atomic_workaround_buffer(), blender::gpu::MTLBindingCache< CommandEncoderT >::bind_sampler(), bind_sampler_argument_buffer(), blender::gpu::MTLBindingCache< CommandEncoderT >::bind_texture(), DEFAULT_SAMPLER_STATE, blender::gpu::ShaderInterface::enabled_ima_mask_, blender::gpu::ShaderInterface::enabled_tex_mask_, ensure_texture_bindings(), blender::gpu::MTLBackend::get_capabilities(), blender::gpu::MTLContext::get_default_sampler_state(), blender::gpu::MTLTexture::get_metal_handle(), blender::gpu::MTLTexture::get_metal_handle_base(), blender::gpu::MTLContext::get_sampler_arg_buf_cache(), blender::gpu::MTLContext::get_sampler_array(), blender::gpu::MTLContext::get_sampler_from_state(), blender::GPU_TEXTURE_USAGE_ATOMIC, blender::gpu::MTLTexture::has_custom_swizzle(), blender::gpu::MTLContextGlobalShaderPipelineState::image_bindings, blender::gpu::MTLShaderInterface::image_name_get(), blender::bits::iter_1_indices(), MTL_IMAGE_SLOT_OFFSET, MTL_LOG_ERROR, MTL_SAMPLER_SLOT_OFFSET, blender::gpu::MTLShaderInterface::name_at_offset(), blender::gpu::ShaderInput::name_offset, blender::gpu::MTLContext::pipeline_state, blender::gpu::MTLContextGlobalShaderPipelineState::sampler_bindings, blender::gpu::MTLShaderInterface::sampler_name_get(), blender::gpu::MTLSamplerBinding::state, blender::gpu::MTLContextGlobalShaderPipelineState::texture_bindings, blender::gpu::ShaderInterface::texture_get(), blender::gpu::Texture::usage_get(), blender::gpu::MTLShaderInterface::use_samplers_argument_buffer(), and blender::gpu::MTLShaderInterface::use_texture_atomic().
Referenced by blender::gpu::MTLContext::compute_dispatch(), blender::gpu::MTLContext::compute_dispatch_indirect(), blender::gpu::MTLContext::ensure_render_pipeline_state(), and ensure_texture_bindings().
| blender::gpu::ENUM_OPERATORS | ( | MTLPipelineStateDirtyFlag | ) |
References ENUM_OPERATORS().
| blender::gpu::ENUM_OPERATORS | ( | RenderGraphFlushFlags | ) |
References ENUM_OPERATORS().
| blender::gpu::ENUM_OPERATORS | ( | ShaderStage | ) |
References ENUM_OPERATORS().
Referenced by ENUM_OPERATORS(), ENUM_OPERATORS(), and ENUM_OPERATORS().
|
static |
Definition at line 1130 of file vk_shader.cc.
References find_interface_by_name().
Referenced by find_interface_by_name(), and blender::gpu::VKShader::geometry_interface_declare().
Definition at line 462 of file gpu_shader_preprocessor.cc.
References BLI_assert_unreachable, ELEM, Elif, Else, Endif, find_next_matching_conditional(), If, Ifdef, Ifndef, increment_to_next_conditional(), blender::gpu::Directive::invalid(), and blender::gpu::Directive::is_valid().
Referenced by find_next_matching_conditional().
Definition at line 685 of file vk_data_conversion.cc.
References float_to_uint32_t().
Referenced by convert(), and float_to_uint32_t().
|
inline |
Definition at line 247 of file GPU_format.hh.
References BLI_assert_unreachable, CASE, format_component_len(), GPU_DATA_FORMAT_EXPAND, and Invalid.
Referenced by blender::GPUVertAttr::Type::comp_len(), format_component_len(), and to_component_len().
|
inline |
Definition at line 338 of file mtl_shader.hh.
References format_get_component_type(), and format_resize_comp().
Referenced by format_get_component_type().
|
inline |
Definition at line 296 of file mtl_shader.hh.
References BLI_assert_unreachable, Float, format_resize_comp(), RESIZE_TYPE, and Short.
Referenced by format_get_component_type(), and format_resize_comp().
|
static |
Definition at line 707 of file mtl_shader_generate.cc.
References blender::gpu::GeneratedStreams::entry_point_parameters, generate_acceleration_structure(), blender::gpu::shader::metadata::out, blender::gpu::GeneratedStreams::wrapper_class_members, blender::gpu::GeneratedStreams::wrapper_constructor_assign, blender::gpu::GeneratedStreams::wrapper_constructor_parameters, and blender::gpu::GeneratedStreams::wrapper_instance_init.
Referenced by generate_acceleration_structure(), and generate_resource().
|
static |
Definition at line 542 of file mtl_shader_generate.cc.
References blender::gpu::GeneratedStreams::entry_point_parameters, generate_buffer(), blender::gpu::shader::metadata::out, ref_type(), blender::gpu::shader::ResourceString::str_no_array(), blender::gpu::shader::ResourceString::str_only_array(), VERTEX, wrap_type(), blender::gpu::GeneratedStreams::wrapper_class_members, blender::gpu::GeneratedStreams::wrapper_constructor_assign, blender::gpu::GeneratedStreams::wrapper_constructor_parameters, and blender::gpu::GeneratedStreams::wrapper_instance_init.
Referenced by generate_buffer(), and generate_resource().
|
static |
Definition at line 1327 of file mtl_shader_generate.cc.
References generate_builtin().
|
static |
Definition at line 1313 of file mtl_shader_generate.cc.
References blender::gpu::GeneratedStreams::entry_point_parameters, generate_builtin(), blender::gpu::GeneratedStreams::wrapper_class_members, blender::gpu::GeneratedStreams::wrapper_constructor_assign, blender::gpu::GeneratedStreams::wrapper_constructor_parameters, and blender::gpu::GeneratedStreams::wrapper_instance_init.
Referenced by generate_builtin(), generate_builtin(), generate_builtins(), and generate_instance_id().
|
static |
Definition at line 1351 of file mtl_shader_generate.cc.
References blender::gpu::shader::BARYCENTRIC_COORD, blender::gpu::shader::ShaderCreateInfo::builtins_combined(), COMPUTE, FRAGMENT, blender::gpu::shader::FRONT_FACING, generate_builtin(), generate_builtins(), generate_instance_id(), blender::gpu::shader::GLOBAL_INVOCATION_ID, blender::gpu::shader::INSTANCE_ID, blender::gpu::shader::LOCAL_INVOCATION_ID, blender::gpu::shader::LOCAL_INVOCATION_INDEX, blender::gpu::shader::NUM_WORK_GROUP, blender::gpu::shader::POINT_COORD, blender::gpu::shader::PRIMITIVE_ID, VERTEX, blender::gpu::shader::VERTEX_ID, blender::gpu::shader::WORK_GROUP_ID, and blender::gpu::GeneratedStreams::wrapper_class_members.
Referenced by generate_builtins(), and generate_entry_point().
|
static |
Definition at line 788 of file mtl_shader_generate.cc.
References generate_compilation_constant(), blender::gpu::shader::CompilationConstant::name, blender::gpu::shader::metadata::out, to_string(), blender::gpu::shader::CompilationConstant::type, blender::gpu::shader::CompilationConstant::value, and blender::gpu::GeneratedStreams::wrapper_class_prefix.
Referenced by generate_compilation_constant(), and generate_resources().
| std::pair< std::string, std::string > blender::gpu::generate_entry_point | ( | const ShaderCreateInfo & | info, |
| const ShaderStage | stage, | ||
| const StringRefNull | entry_point_name ) |
Definition at line 1398 of file mtl_shader_generate.cc.
References blender::gpu::shader::ShaderCreateInfo::early_fragment_test_, blender::gpu::GeneratedStreams::entry_point_parameters, blender::gpu::GeneratedStreams::entry_point_start, FRAGMENT, generate_builtins(), generate_entry_point(), generate_resources(), generate_stage_interfaces(), get_stage_class_name(), get_stage_instance_name(), get_stage_out_class_name(), get_stage_out_instance_name(), get_stage_type(), blender::gpu::ArgumentStream::is_first_arg, LINE, blender::gpu::shader::metadata::out, VERTEX, blender::gpu::GeneratedStreams::wrapper_class_members, blender::gpu::GeneratedStreams::wrapper_class_prefix, blender::gpu::GeneratedStreams::wrapper_constructor_assign, blender::gpu::GeneratedStreams::wrapper_constructor_parameters, and blender::gpu::GeneratedStreams::wrapper_instance_init.
Referenced by generate_entry_point().
|
static |
Definition at line 1128 of file mtl_shader_generate.cc.
References attribute, cast(), generate_fragment_builtin(), blender::gpu::GeneratedStreams::wrapper_class_members, and blender::gpu::GeneratedStreams::wrapper_constructor_assign.
Referenced by generate_fragment_builtin(), and generate_fragment_builtins().
|
static |
Definition at line 1147 of file mtl_shader_generate.cc.
References blender::gpu::shader::ANY, blender::gpu::shader::ShaderCreateInfo::builtins_combined(), blender::gpu::shader::ShaderCreateInfo::depth_write_, generate_fragment_builtin(), generate_fragment_builtins(), blender::gpu::shader::GREATER, blender::gpu::shader::LESS, blender::gpu::shader::STENCIL_REF, and blender::gpu::shader::UNCHANGED.
Referenced by generate_fragment_builtins(), and generate_fragment_out().
|
static |
Definition at line 1294 of file mtl_shader_generate.cc.
References FRAGMENT, generate_fragment_interface(), generate_fragment_out(), generate_subpass_inputs(), and generate_vertex_out().
Referenced by generate_fragment_interface(), and generate_stage_interfaces().
|
static |
Definition at line 1230 of file mtl_shader_generate.cc.
References FRAGMENT, blender::gpu::shader::ShaderCreateInfo::fragment_outputs_, generate_fragment_builtins(), generate_fragment_out(), get_stage_out_class_name(), get_stage_out_instance_name(), blender::gpu::shader::NONE, blender::gpu::shader::metadata::out, output, blender::gpu::shader::SRC_0, blender::gpu::GeneratedStreams::wrapper_class_members, blender::gpu::GeneratedStreams::wrapper_constructor_assign, blender::gpu::GeneratedStreams::wrapper_constructor_parameters, and blender::gpu::GeneratedStreams::wrapper_instance_init.
Referenced by generate_fragment_interface(), and generate_fragment_out().
|
static |
Definition at line 1029 of file mtl_shader_generate.cc.
References blender::BLI_assert(), blender::gpu::shader::float3x3_t, blender::gpu::shader::float4x4_t, generate_inout(), blender::gpu::shader::metadata::inout, blender::gpu::shader::metadata::out, and to_string().
Referenced by generate_inout(), and generate_vertex_out().
|
static |
Definition at line 1335 of file mtl_shader_generate.cc.
References generate_builtin(), generate_instance_id(), blender::gpu::shader::metadata::out, blender::gpu::GeneratedStreams::wrapper_class_members, and blender::gpu::GeneratedStreams::wrapper_constructor_assign.
Referenced by generate_builtins(), and generate_instance_id().
|
static |
Definition at line 939 of file mtl_shader_generate.cc.
References attribute, generate_raster_builtin(), blender::gpu::GeneratedStreams::wrapper_class_members, and blender::gpu::GeneratedStreams::wrapper_constructor_assign.
Referenced by generate_raster_builtin(), and generate_raster_builtins().
|
static |
Definition at line 957 of file mtl_shader_generate.cc.
References blender::gpu::shader::ShaderCreateInfo::builtins_combined(), blender::gpu::shader::CLIP_DISTANCES, blender::gpu::GeneratedStreams::entry_point_start, blender::gpu::shader::FRAG_COORD, FRAGMENT, generate_raster_builtin(), generate_raster_builtins(), get_stage_out_instance_name(), blender::IndexRange::IndexRange(), blender::gpu::shader::LAYER, blender::gpu::shader::POINT_SIZE, VERTEX, blender::gpu::shader::VIEWPORT_INDEX, blender::gpu::GeneratedStreams::wrapper_class_members, and blender::gpu::GeneratedStreams::wrapper_constructor_assign.
Referenced by generate_raster_builtins(), and generate_vertex_out().
|
static |
Definition at line 739 of file mtl_shader_generate.cc.
References blender::gpu::shader::ShaderCreateInfo::Resource::ACCELERATION_STRUCTURE, blender::ShaderCreateInfo::Resource::bind_type, generate_acceleration_structure(), generate_buffer(), generate_resource(), generate_texture(), blender::gpu::shader::ShaderCreateInfo::Resource::IMAGE, MTL_ACCELERATION_STRUCTURE_SLOT, MTL_IMAGE_SLOT_OFFSET, MTL_SAMPLER_SLOT_OFFSET, MTL_SSBO_SLOT_OFFSET, MTL_UBO_SLOT_OFFSET, blender::gpu::shader::read, blender::gpu::shader::ShaderCreateInfo::Resource::SAMPLER, blender::ShaderCreateInfo::Resource::slot, blender::gpu::shader::ShaderCreateInfo::Resource::STORAGE_BUFFER, blender::gpu::shader::ShaderCreateInfo::Resource::UNIFORM_BUFFER, and blender::gpu::shader::write.
Referenced by generate_resource(), and generate_resources().
| void blender::gpu::generate_resources | ( | GeneratedStreams & | generated, |
| const ShaderStage | stage, | ||
| const ShaderCreateInfo & | info ) |
Definition at line 854 of file mtl_shader_generate.cc.
References blender::gpu::shader::ShaderCreateInfo::batch_resources_, blender::gpu::shader::ShaderCreateInfo::builtins_combined(), blender::gpu::shader::ShaderCreateInfo::compilation_constants_, generate_compilation_constant(), generate_resource(), generate_resources(), generate_sampler_argument_buffer(), generate_shared_variable(), generate_specialization_constant(), generate_uniforms(), blender::gpu::shader::ShaderCreateInfo::geometry_resources_, blender::gpu::shader::ShaderCreateInfo::max_sampler_slot(), MTL_SPECIALIZATION_CONSTANT_OFFSET, blender::gpu::shader::ShaderCreateInfo::pass_resources_, blender::gpu::shader::ShaderCreateInfo::push_constants_, blender::gpu::shader::ShaderCreateInfo::shared_variables_, blender::gpu::shader::ShaderCreateInfo::specialization_constants_, and blender::gpu::shader::USE_SAMPLER_ARG_BUFFER.
Referenced by generate_entry_point(), and generate_resources().
|
static |
Definition at line 837 of file mtl_shader_generate.cc.
References blender::gpu::GeneratedStreams::entry_point_parameters, generate_sampler_argument_buffer(), MTL_SAMPLER_ARGUMENT_BUFFER_SLOT, blender::gpu::shader::metadata::out, and blender::gpu::GeneratedStreams::wrapper_class_prefix.
Referenced by generate_resources(), and generate_sampler_argument_buffer().
|
static |
Definition at line 807 of file mtl_shader_generate.cc.
References blender::gpu::GeneratedStreams::entry_point_start, generate_shared_variable(), blender::ShaderCreateInfo::SharedVariable::name, blender::gpu::shader::metadata::out, ref_type(), blender::gpu::shader::ResourceString::str_no_array(), blender::ShaderCreateInfo::SharedVariable::type, blender::gpu::GeneratedStreams::wrapper_class_members, blender::gpu::GeneratedStreams::wrapper_constructor_assign, blender::gpu::GeneratedStreams::wrapper_constructor_parameters, and blender::gpu::GeneratedStreams::wrapper_instance_init.
Referenced by generate_resources(), and generate_shared_variable().
|
static |
Definition at line 797 of file mtl_shader_generate.cc.
References generate_specialization_constant(), blender::gpu::shader::SpecializationConstant::name, blender::gpu::shader::metadata::out, blender::gpu::shader::SpecializationConstant::type, and blender::gpu::GeneratedStreams::wrapper_class_prefix.
Referenced by generate_resources(), and generate_specialization_constant().
|
static |
Definition at line 1301 of file mtl_shader_generate.cc.
References FRAGMENT, generate_fragment_interface(), generate_stage_interfaces(), generate_vertex_interface(), and VERTEX.
Referenced by generate_entry_point(), and generate_stage_interfaces().
|
static |
Definition at line 1174 of file mtl_shader_generate.cc.
References blender::gpu::GeneratedStreams::entry_point_parameters, FRAGMENT, generate_subpass_inputs(), blender::ShaderCreateInfo::SubpassIn::index, blender::ShaderCreateInfo::SubpassIn::name, blender::gpu::shader::metadata::out, blender::ShaderCreateInfo::SubpassIn::raster_order_group, blender::gpu::shader::ShaderCreateInfo::subpass_inputs_, blender::ShaderCreateInfo::SubpassIn::type, wrap_type(), blender::gpu::GeneratedStreams::wrapper_class_members, blender::gpu::GeneratedStreams::wrapper_constructor_assign, blender::gpu::GeneratedStreams::wrapper_constructor_parameters, and blender::gpu::GeneratedStreams::wrapper_instance_init.
Referenced by generate_fragment_interface(), and generate_subpass_inputs().
|
static |
Definition at line 610 of file mtl_shader_generate.cc.
References ELEM, blender::gpu::GeneratedStreams::entry_point_parameters, generate_texture(), blender::gpu::MTLBackend::get_capabilities(), MTL_SAMPLER_SLOT_OFFSET, blender::gpu::shader::metadata::out, blender::gpu::shader::read, blender::gpu::MTLCapabilities::supports_texture_atomics, to_access(), to_component_type(), to_raw_type(), to_wrapper_type(), VERTEX, blender::gpu::GeneratedStreams::wrapper_class_members, blender::gpu::GeneratedStreams::wrapper_constructor_assign, blender::gpu::GeneratedStreams::wrapper_constructor_parameters, and blender::gpu::GeneratedStreams::wrapper_instance_init.
Referenced by generate_resource(), and generate_texture().
|
static |
Definition at line 491 of file mtl_shader_generate.cc.
References blender::gpu::shader::bool_t, blender::gpu::GeneratedStreams::entry_point_parameters, generate_uniforms(), blender::gpu::shader::int_t, blender::Span< T >::is_empty(), MTL_PUSH_CONSTANT_BUFFER_SLOT, blender::gpu::shader::metadata::out, wrap_type(), blender::gpu::GeneratedStreams::wrapper_class_members, blender::gpu::GeneratedStreams::wrapper_constructor_assign, blender::gpu::GeneratedStreams::wrapper_constructor_parameters, and blender::gpu::GeneratedStreams::wrapper_instance_init.
Referenced by generate_resources(), and generate_uniforms().
|
static |
Definition at line 891 of file mtl_shader_generate.cc.
References blender::gpu::GeneratedStreams::entry_point_parameters, generate_vertex_attributes(), get_stage_class_name(), get_stage_in_class_name(), get_stage_in_instance_name(), blender::ShaderCreateInfo::VertIn::index, blender::ShaderCreateInfo::VertIn::name, blender::gpu::shader::metadata::out, blender::ShaderCreateInfo::VertIn::type, VERTEX, blender::gpu::shader::ShaderCreateInfo::vertex_inputs_, blender::gpu::GeneratedStreams::wrapper_class_members, blender::gpu::GeneratedStreams::wrapper_constructor_assign, blender::gpu::GeneratedStreams::wrapper_constructor_parameters, and blender::gpu::GeneratedStreams::wrapper_instance_init.
Referenced by generate_vertex_attributes(), and generate_vertex_interface().
|
static |
Definition at line 1288 of file mtl_shader_generate.cc.
References generate_vertex_attributes(), generate_vertex_interface(), generate_vertex_out(), and VERTEX.
Referenced by generate_stage_interfaces(), and generate_vertex_interface().
|
static |
Definition at line 1040 of file mtl_shader_generate.cc.
References blender::gpu::GeneratedStreams::entry_point_parameters, FRAGMENT, generate_inout(), generate_raster_builtins(), generate_vertex_out(), get_stage_class_name(), get_stage_in_class_name(), get_stage_in_instance_name(), get_stage_out_class_name(), get_stage_out_instance_name(), blender::gpu::shader::metadata::inout, blender::gpu::shader::StageInterfaceInfo::inouts, blender::gpu::shader::StageInterfaceInfo::instance_name, blender::blender::StringRefBase::is_empty(), blender::gpu::shader::StageInterfaceInfo::name, blender::gpu::shader::metadata::out, VERTEX, blender::gpu::shader::ShaderCreateInfo::vertex_out_interfaces_, blender::gpu::GeneratedStreams::wrapper_class_members, blender::gpu::GeneratedStreams::wrapper_constructor_assign, blender::gpu::GeneratedStreams::wrapper_constructor_parameters, and blender::gpu::GeneratedStreams::wrapper_instance_init.
Referenced by generate_fragment_interface(), generate_vertex_interface(), and generate_vertex_out().
|
static |
Definition at line 590 of file mtl_shader.mm.
References get_buffers_binding_mask(), isActive(), and MTL_MAX_BUFFER_BINDINGS.
Referenced by get_buffers_binding_mask(), and blender::gpu::MTLRenderPipelineStateInstance::parse_reflection_data().
|
static |
Definition at line 24 of file gl_texture_pool.cc.
References get_compatible_texture_format(), GPU_FORMAT_COMPRESSED, GPU_FORMAT_DEPTH_STENCIL, Invalid, to_bytesize(), and to_format_flag().
Referenced by blender::gpu::GLTexturePool::acquire_texture_impl(), and get_compatible_texture_format().
|
static |
Definition at line 213 of file mtl_shader.mm.
References get_compile_options(), blender::bke::subdiv::init(), and options.
Referenced by get_compile_options().
|
inline |
Definition at line 99 of file vk_texture_pool.cc.
References blender::BLI_assert(), blender::gpu::VKBackend::device, blender::gpu::VKDevice::extensions_get(), blender::gpu::VKDevice::functions, blender::gpu::VKBackend::get(), get_image_memory_requirements(), blender::gpu::VKExtensions::maintenance4, blender::result, UNUSED_VARS_NDEBUG, and blender::gpu::VKDevice::vk_handle().
Referenced by blender::gpu::VKTexturePool::acquire_texture_impl(), and get_image_memory_requirements().
|
static |
Definition at line 605 of file mtl_shader.mm.
References get_images_binding_mask(), isActive(), and MTL_MAX_IMAGE_SLOTS.
Referenced by get_images_binding_mask(), and blender::gpu::MTLRenderPipelineStateInstance::parse_reflection_data().
|
inline |
Definition at line 421 of file vk_shader.cc.
References blender::gpu::shader::float3x3_t, blender::gpu::shader::float4x4_t, and get_location_count().
Referenced by get_location_count(), print_interface_as_attributes(), and print_interface_as_struct().
| size_t blender::gpu::get_mtl_format_bytesize | ( | MTLPixelFormat | tex_format | ) |
Definition at line 54 of file mtl_texture_util.mm.
References BLI_assert_msg, and get_mtl_format_bytesize().
Referenced by get_mtl_format_bytesize(), blender::gpu::MTLTexture::init_internal(), and blender::gpu::MTLTexture::update_sub().
| int blender::gpu::get_mtl_format_num_components | ( | MTLPixelFormat | tex_format | ) |
Definition at line 130 of file mtl_texture_util.mm.
References BLI_assert_msg, and get_mtl_format_num_components().
Referenced by get_mtl_format_num_components(), and blender::gpu::MTLTexture::update_sub().
|
static |
Definition at line 386 of file mtl_backend.mm.
References blender::BLI_assert(), get_num_efficiency_cpu_cores(), and is_apple_sillicon().
Referenced by get_num_efficiency_cpu_cores().
|
static |
Definition at line 361 of file mtl_backend.mm.
References blender::BLI_assert(), get_num_performance_cpu_cores(), and is_apple_sillicon().
Referenced by get_num_performance_cpu_cores().
|
static |
Definition at line 620 of file mtl_shader.mm.
References get_samplers_binding_mask(), isActive(), MTL_MAX_IMAGE_SLOTS, and MTL_MAX_TEXTURE_SLOTS.
Referenced by get_samplers_binding_mask(), and blender::gpu::MTLRenderPipelineStateInstance::parse_reflection_data().
|
static |
Definition at line 317 of file mtl_shader_generate.cc.
References BLI_assert_unreachable, COMPUTE, FRAGMENT, get_stage_class_name(), and VERTEX.
Referenced by generate_entry_point(), generate_vertex_attributes(), generate_vertex_out(), get_stage_class_name(), and wrap_type().
|
static |
Definition at line 351 of file mtl_shader_generate.cc.
References BLI_assert_unreachable, COMPUTE, FRAGMENT, get_stage_in_class_name(), and VERTEX.
Referenced by generate_vertex_attributes(), generate_vertex_out(), and get_stage_in_class_name().
|
static |
Definition at line 383 of file mtl_shader_generate.cc.
References BLI_assert_unreachable, COMPUTE, FRAGMENT, get_stage_in_instance_name(), and VERTEX.
Referenced by generate_vertex_attributes(), generate_vertex_out(), and get_stage_in_instance_name().
|
static |
Definition at line 399 of file mtl_shader_generate.cc.
References BLI_assert_unreachable, COMPUTE, FRAGMENT, get_stage_instance_name(), and VERTEX.
Referenced by generate_entry_point(), and get_stage_instance_name().
|
static |
Definition at line 333 of file mtl_shader_generate.cc.
References BLI_assert_unreachable, blender::gpu::shader::ShaderCreateInfo::builtins_combined(), COMPUTE, blender::gpu::shader::ShaderCreateInfo::depth_write_, FRAGMENT, blender::gpu::shader::ShaderCreateInfo::fragment_outputs_, get_stage_out_class_name(), blender::gpu::shader::STENCIL_REF, blender::gpu::shader::UNCHANGED, and VERTEX.
Referenced by generate_entry_point(), generate_fragment_out(), generate_vertex_out(), and get_stage_out_class_name().
|
static |
Definition at line 367 of file mtl_shader_generate.cc.
References BLI_assert_unreachable, COMPUTE, FRAGMENT, get_stage_out_instance_name(), and VERTEX.
Referenced by generate_entry_point(), generate_fragment_out(), generate_raster_builtins(), generate_vertex_out(), and get_stage_out_instance_name().
|
static |
Definition at line 415 of file mtl_shader_generate.cc.
References BLI_assert_unreachable, COMPUTE, FRAGMENT, get_stage_type(), and VERTEX.
Referenced by generate_entry_point(), and get_stage_type().
|
static |
Definition at line 39 of file gpu_texture_mipmap.cc.
References get_update_mipmap_shader(), blender::GPU_SHADER_2D_UPDATE_MIPMAPS_SFLOAT_16, blender::GPU_SHADER_2D_UPDATE_MIPMAPS_SFLOAT_16_16_16_16, blender::GPU_SHADER_2D_UPDATE_MIPMAPS_SFLOAT_16_16_16_16_LAYERED, blender::GPU_SHADER_2D_UPDATE_MIPMAPS_SFLOAT_16_LAYERED, blender::GPU_SHADER_2D_UPDATE_MIPMAPS_SFLOAT_32, blender::GPU_SHADER_2D_UPDATE_MIPMAPS_SFLOAT_32_32_32_32, blender::GPU_SHADER_2D_UPDATE_MIPMAPS_SFLOAT_32_32_32_32_LAYERED, blender::GPU_SHADER_2D_UPDATE_MIPMAPS_SFLOAT_32_LAYERED, blender::GPU_SHADER_2D_UPDATE_MIPMAPS_SRGBA_8_8_8_8, blender::GPU_SHADER_2D_UPDATE_MIPMAPS_SRGBA_8_8_8_8_LAYERED, blender::GPU_SHADER_2D_UPDATE_MIPMAPS_UNORM_8, blender::GPU_SHADER_2D_UPDATE_MIPMAPS_UNORM_8_8_8_8, blender::GPU_SHADER_2D_UPDATE_MIPMAPS_UNORM_8_8_8_8_LAYERED, blender::GPU_SHADER_2D_UPDATE_MIPMAPS_UNORM_8_LAYERED, and blender::GPU_shader_get_builtin_shader().
Referenced by get_update_mipmap_shader(), and blender::texture_update_mipmap_chain().
|
static |
Definition at line 655 of file gpu_context.cc.
References BLI_assert_unreachable, ghost_context_type(), GHOST_kDrawingContextTypeNone, blender::GPU_BACKEND_METAL, blender::GPU_BACKEND_OPENGL, blender::GPU_backend_type_selection_get(), and blender::GPU_BACKEND_VULKAN.
Referenced by ghost_context_type(), and GPU_create_secondary_context().
|
static |
Definition at line 410 of file gl_backend.cc.
References gl_extension_get().
Referenced by gl_extension_get().
| void blender::gpu::GPU_activate_secondary_context | ( | const GPUSecondaryContextData & | data | ) |
Activates the given secondary GPU context.
Definition at line 728 of file gpu_context.cc.
References blender::data, GPU_activate_secondary_context(), and blender::GPU_context_active_set().
Referenced by GPU_activate_secondary_context(), GPU_destroy_secondary_context(), blender::IMB_activate_gpu_context(), blender::seq::render_begin_gpu(), and blender::seq::CompositorCache::~CompositorCache().
| GPUSecondaryContextData blender::gpu::GPU_create_secondary_context | ( | ) |
Creates a secondary off-screen GHOST and GPU contexts. Must be called on the main thread.
Definition at line 676 of file gpu_context.cc.
References GHOST_IContext::activateDrawingContext(), blender::BLI_assert(), blender::BLI_thread_is_main(), GHOST_GPUSettings::context_type, GHOST_ISystem::createOffscreenContext(), GHOST_GPUSettings::flags, blender::G, blender::G_DEBUG_GPU, blender::G_DEBUG_GPU_NO_HW_RAYTRACING, GHOST_IContext::getActiveDrawingContext(), ghost_context_type(), GHOST_gpuDebugContext, GHOST_gpuNoHWRaytracing, blender::GPU_backend_ghost_system_get(), blender::GPU_backend_preferred_device_get(), blender::GPU_context_active_get(), blender::GPU_context_active_set(), blender::GPU_context_create(), GPU_create_secondary_context(), GHOST_GPUSettings::preferred_device, GHOST_IContext::releaseDrawingContext(), and UNUSED_VARS_NDEBUG.
Referenced by GPU_create_secondary_context(), blender::gpu::GPUSecondaryContext::GPUSecondaryContext(), blender::IMB_ensure_gpu_context(), and blender::seq::PrefetchJob::init_gpu().
| void blender::gpu::GPU_deactivate_secondary_context | ( | const GPUSecondaryContextData & | data | ) |
Deactivates the given secondary GPU context.
Definition at line 734 of file gpu_context.cc.
References blender::data, blender::GPU_context_active_set(), and GPU_deactivate_secondary_context().
Referenced by GPU_deactivate_secondary_context(), blender::IMB_deactivate_gpu_context(), blender::seq::render_end_gpu(), and blender::seq::CompositorCache::~CompositorCache().
|
static |
Definition at line 156 of file mtl_state.mm.
References blender::BLI_assert(), blender::GPU_DEPTH_ALWAYS, blender::GPU_DEPTH_EQUAL, gpu_depth_function_to_metal(), blender::GPU_DEPTH_GREATER, blender::GPU_DEPTH_GREATER_EQUAL, blender::GPU_DEPTH_LESS, blender::GPU_DEPTH_LESS_EQUAL, and blender::GPU_DEPTH_NONE.
Referenced by gpu_depth_function_to_metal().
| void blender::gpu::GPU_destroy_secondary_context | ( | GPUSecondaryContextData & | data | ) |
Destroys the given secondary GPU context.
Definition at line 740 of file gpu_context.cc.
References GHOST_IContext::activateDrawingContext(), blender::data, GHOST_ISystem::disposeContext(), GHOST_IContext::getActiveDrawingContext(), GPU_activate_secondary_context(), blender::GPU_backend_ghost_system_get(), blender::GPU_context_active_get(), blender::GPU_context_active_set(), blender::GPU_context_discard(), and GPU_destroy_secondary_context().
Referenced by blender::seq::PrefetchJob::free_gpu(), GPU_destroy_secondary_context(), and blender::IMB_exit().
|
inlinestatic |
Definition at line 37 of file mtl_primitive.hh.
References blender::GPU_PRIM_LINE_LOOP, blender::GPU_PRIM_LINE_STRIP, blender::GPU_PRIM_LINE_STRIP_ADJ, blender::GPU_PRIM_LINES, blender::GPU_PRIM_LINES_ADJ, blender::GPU_PRIM_NONE, blender::GPU_PRIM_POINTS, blender::GPU_PRIM_TRI_FAN, blender::GPU_PRIM_TRI_STRIP, blender::GPU_PRIM_TRIS, blender::GPU_PRIM_TRIS_ADJ, and gpu_prim_type_to_metal().
Referenced by gpu_prim_type_to_metal().
|
static |
Definition at line 180 of file mtl_state.mm.
References blender::BLI_assert(), blender::GPU_STENCIL_ALWAYS, blender::GPU_STENCIL_EQUAL, gpu_stencil_func_to_metal(), blender::GPU_STENCIL_NEQUAL, and blender::GPU_STENCIL_NONE.
Referenced by gpu_stencil_func_to_metal().
| MTLPixelFormat blender::gpu::gpu_texture_format_to_metal | ( | TextureFormat | tex_format | ) |
Definition at line 38 of file mtl_texture_util.mm.
References BLI_assert_msg, CASE, GPU_TEXTURE_FORMAT_EXPAND, gpu_texture_format_to_metal(), and Invalid.
Referenced by blender::gpu::MTLShader::bake_current_pipeline_state(), gpu_texture_format_to_metal(), blender::gpu::MTLTexture::init_internal(), and blender::gpu::MTLTexture::update_sub().
|
static |
Definition at line 158 of file gl_shader_interface.cc.
References blender::BLI_assert(), blender::gpu::shader::bool_t, blender::gpu::shader::float2_t, blender::gpu::shader::float3_t, blender::gpu::shader::float3x3_t, blender::gpu::shader::float4_t, blender::gpu::shader::float4x4_t, blender::gpu::shader::float_t, gpu_type_from_gl_type(), blender::gpu::shader::int2_t, blender::gpu::shader::int3_t, blender::gpu::shader::int4_t, blender::gpu::shader::int_t, blender::gpu::shader::uint2_t, blender::gpu::shader::uint3_t, blender::gpu::shader::uint4_t, and blender::gpu::shader::uint_t.
Referenced by blender::gpu::GLShaderInterface::GLShaderInterface(), and gpu_type_from_gl_type().
| MTLVertexFormat blender::gpu::gpu_type_to_metal_vertex_format | ( | shader::Type | type | ) |
Definition at line 448 of file mtl_vertex_buffer.mm.
References blender::BLI_assert(), and gpu_type_to_metal_vertex_format().
Referenced by blender::gpu::MTLShader::bake_graphic_pipeline_state(), and gpu_type_to_metal_vertex_format().
|
inline |
Definition at line 336 of file mtl_shader_interface_type.hh.
References blender::BLI_assert(), blender::GPU_BOOL, blender::GPU_FLOAT, blender::GPU_INT, blender::GPU_INT2, blender::GPU_INT3, blender::GPU_INT4, blender::GPU_MAT3, blender::GPU_MAT4, gpu_type_to_mtl_type(), blender::GPU_VEC2, blender::GPU_VEC3, blender::GPU_VEC4, MTL_DATATYPE_BOOL, MTL_DATATYPE_FLOAT, MTL_DATATYPE_FLOAT2, MTL_DATATYPE_FLOAT3, MTL_DATATYPE_FLOAT3x3, MTL_DATATYPE_FLOAT4, MTL_DATATYPE_FLOAT4x4, MTL_DATATYPE_INT, MTL_DATATYPE_INT2, MTL_DATATYPE_INT3, and MTL_DATATYPE_INT4.
Referenced by gpu_type_to_mtl_type().
|
inline |
Definition at line 671 of file mtl_texture.hh.
References blender::GPU_TEXTURE_USAGE_ATTACHMENT, blender::GPU_TEXTURE_USAGE_FORMAT_VIEW, blender::GPU_TEXTURE_USAGE_GENERAL, blender::GPU_TEXTURE_USAGE_SHADER_READ, blender::GPU_TEXTURE_USAGE_SHADER_WRITE, and gpu_usage_from_mtl().
Referenced by gpu_usage_from_mtl(), and blender::gpu::MTLTexture::MTLTexture().
| MTLVertexFormat blender::gpu::gpu_vertex_format_to_metal | ( | VertAttrType | vert_format | ) |
Definition at line 426 of file mtl_vertex_buffer.mm.
References BLI_assert_msg, CASE, CASE_DEPRECATED, GPU_VERTEX_DEPRECATED_FORMAT_EXPAND, GPU_VERTEX_FORMAT_EXPAND, gpu_vertex_format_to_metal(), and Invalid.
Referenced by blender::gpu::MTLImmediate::end(), and gpu_vertex_format_to_metal().
| bool blender::gpu::GPU_vulkan_is_supported_driver | ( | VkPhysicalDevice | vk_physical_device | ) |
Is the driver of the given physical device supported?
There are some drivers that have known issues and should not be used. This check needs to be identical between GPU module and GHOST, otherwise GHOST can still select a device which isn't supported.
For example on a Linux machine where LLVMPIPE is installed and an not supported NVIDIA driver Blender would detect a supported configuration using LLVMPIPE, but GHOST could still select the unsupported NVIDIA driver.
Returns true when supported, false when not supported.
Definition at line 55 of file vk_backend.cc.
References CLOG_WARN, blender::blender::StringRefBase::find(), GPU_vulkan_is_supported_driver(), LOG, and blender::blender::StringRefBase::not_found.
Referenced by GPU_vulkan_is_supported_driver(), init_device_list(), blender::gpu::VKBackend::is_supported(), GHOST_InstanceVK::select_physical_device(), and blender::gpu::VKBackend::supported_devices_print().
|
static |
Definition at line 611 of file vk_data_conversion.cc.
References blender::GPU_DATA_10_11_11_REV, blender::GPU_DATA_2_10_10_10_REV, blender::GPU_DATA_FLOAT, blender::GPU_DATA_HALF_FLOAT, blender::GPU_DATA_INT, blender::GPU_DATA_UBYTE, blender::GPU_DATA_UINT, blender::GPU_DATA_UINT_24_8_DEPRECATED, host_to_device(), type_of_conversion_float(), type_of_conversion_half(), type_of_conversion_int(), type_of_conversion_r10g10b10a2(), type_of_conversion_r11g11b10(), type_of_conversion_ubyte(), type_of_conversion_uint(), type_of_conversion_uint248(), and UNSUPPORTED.
Referenced by convert_device_to_host(), convert_host_to_device(), host_to_device(), and needs_conversion().
|
inlinestatic |
Definition at line 95 of file gl_shader_interface.cc.
References image_binding().
Referenced by blender::gpu::GLShaderInterface::GLShaderInterface(), and image_binding().
|
static |
Definition at line 28 of file gpu_immediate_util.cc.
References angle(), cosf, DEG2RADF, float, imm_draw_circle_partial_aspect(), blender::immBegin(), blender::immEnd(), blender::immVertex2f(), blender::interpf(), M_PI_2, sinf, blender::x, and y.
Referenced by imm_draw_circle_partial_aspect(), and imm_draw_circle_partial_wire_aspect_2d().
|
static |
Definition at line 50 of file gpu_immediate_util.cc.
References angle(), cosf, DEG2RADF, float, imm_draw_circle_partial_aspect_3d(), blender::immBegin(), blender::immEnd(), blender::immVertex3f(), blender::interpf(), M_PI, sinf, blender::x, y, and z().
Referenced by imm_draw_circle_partial_aspect_3d(), and imm_draw_circle_partial_wire_aspect_3d().
| void blender::gpu::imm_draw_circle_partial_wire_aspect_2d | ( | uint | pos, |
| float | x, | ||
| float | y, | ||
| float2 | radius, | ||
| int | nsegments, | ||
| float | start, | ||
| float | sweep ) |
Definition at line 73 of file gpu_immediate_util.cc.
References blender::GPU_PRIM_LINE_STRIP, imm_draw_circle_partial_aspect(), imm_draw_circle_partial_wire_aspect_2d(), blender::x, and y.
Referenced by imm_draw_circle_partial_wire_aspect_2d(), and imm_draw_rounded_box_wire_2d().
| void blender::gpu::imm_draw_circle_partial_wire_aspect_3d | ( | uint | pos, |
| float | x, | ||
| float | y, | ||
| float | z, | ||
| float2 | radius, | ||
| int | nsegments, | ||
| float | start, | ||
| float | sweep ) |
Definition at line 84 of file gpu_immediate_util.cc.
References blender::GPU_PRIM_LINE_STRIP, imm_draw_circle_partial_aspect_3d(), imm_draw_circle_partial_wire_aspect_3d(), blender::x, y, and z().
Referenced by imm_draw_circle_partial_wire_aspect_3d(), and imm_draw_rounded_box_wire_3d().
| void blender::gpu::imm_draw_rounded_box_wire_2d | ( | uint | pos, |
| float | x, | ||
| float | y, | ||
| float2 | radius, | ||
| float2 | corner_radius, | ||
| int | nsegments ) |
Definition at line 97 of file gpu_immediate_util.cc.
References blender::BLI_assert(), blender::GPU_PRIM_LINES, blender::imm_draw_box_wire_2d(), imm_draw_circle_partial_wire_aspect_2d(), blender::imm_draw_circle_wire_aspect_2d(), imm_draw_rounded_box_wire_2d(), blender::immBegin(), blender::immEnd(), blender::immVertex2f(), blender::x, and y.
Referenced by imm_draw_rounded_box_wire_2d(), and blender::radial_control_paint_cursor().
| void blender::gpu::imm_draw_rounded_box_wire_3d | ( | uint | pos, |
| float | x, | ||
| float | y, | ||
| float2 | radius, | ||
| float2 | corner_radius, | ||
| int | nsegments ) |
Definition at line 152 of file gpu_immediate_util.cc.
References blender::BLI_assert(), blender::GPU_PRIM_LINES, blender::imm_draw_box_wire_3d(), imm_draw_circle_partial_wire_aspect_3d(), blender::imm_draw_circle_wire_aspect_3d(), imm_draw_rounded_box_wire_3d(), blender::immBegin(), blender::immEnd(), blender::immVertex3f(), blender::x, and y.
Referenced by imm_draw_rounded_box_wire_3d(), blender::ed::sculpt_paint::inactive_cursor_draw(), and blender::ed::sculpt_paint::main_inactive_cursor_draw().
|
static |
Definition at line 439 of file gpu_shader_preprocessor.cc.
References BLI_assert_unreachable, ELEM, Elif, Else, Endif, If, Ifdef, Ifndef, increment_to_next_conditional(), blender::gpu::Directive::is_valid(), blender::gpu::Directive::next(), Other, and blender::gpu::Directive::type().
Referenced by find_next_matching_conditional(), and increment_to_next_conditional().
|
inline |
Definition at line 146 of file GPU_index_buffer.hh.
References blender::GPU_PRIM_LINE_LOOP, blender::GPU_PRIM_LINE_STRIP, blender::GPU_PRIM_LINES, blender::GPU_PRIM_LINES_ADJ, blender::GPU_PRIM_POINTS, blender::GPU_PRIM_TRIS, blender::GPU_PRIM_TRIS_ADJ, and indices_per_primitive().
Referenced by blender::GPU_batch_draw_expanded_parameter_get(), blender::GPU_indexbuf_build_from_memory(), blender::GPU_indexbuf_primitive_len(), and indices_per_primitive().
|
static |
Definition at line 22 of file vk_push_constants.cc.
References align(), blender::gpu::VKPushConstants::Layout::PushConstant::array_size, init_constant(), blender::gpu::VKPushConstants::Layout::PushConstant::inner_row_padding, blender::gpu::ShaderInput::location, blender::gpu::VKPushConstants::Layout::PushConstant::location, blender::gpu::VKPushConstants::Layout::PushConstant::offset, push_constant, and blender::gpu::VKPushConstants::Layout::PushConstant::type.
Referenced by init_constant(), and init_struct().
|
static |
Definition at line 418 of file vk_backend.cc.
References b, blender::Array< T, InlineBufferCapacity, Allocator >::data(), blender::gpu::GPUPlatformGlobal::devices, GPG, GPU_vulkan_is_supported_driver(), init_device_list(), missing_capabilities_get(), and blender::GPUDevice::name.
Referenced by blender::gpu::VKBackend::context_alloc(), and init_device_list().
| void blender::gpu::init_struct | ( | const shader::ShaderCreateInfo & | info, |
| const VKShaderInterface & | interface, | ||
| Vector< VKPushConstants::Layout::PushConstant > & | r_struct, | ||
| uint32_t * | r_offset ) |
Definition at line 67 of file vk_push_constants.cc.
References init_constant(), init_struct(), push_constant, blender::gpu::shader::ShaderCreateInfo::push_constants_, and blender::gpu::ShaderInterface::uniform_get().
Referenced by blender::gpu::VKPushConstants::Layout::init(), and init_struct().
| bool blender::gpu::is_apple_sillicon | ( | id< MTLDevice > | device | ) |
Definition at line 350 of file mtl_backend.mm.
References blender::BLI_assert(), is_apple_sillicon(), and length().
Referenced by get_num_efficiency_cpu_cores(), get_num_performance_cpu_cores(), and is_apple_sillicon().
|
static |
Try to check if the driver is older than 22.6.1, preferring false positives.
Definition at line 97 of file gl_backend.cc.
References is_bad_AMD_driver(), and parse_version().
Referenced by detect_workarounds(), and is_bad_AMD_driver().
|
static |
Definition at line 56 of file mtl_shader_generate.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), and is_builtin_type().
Referenced by is_builtin_type(), and wrap_type().
| bool blender::gpu::is_fetch_float | ( | VertAttrType | attr_type | ) |
Definition at line 257 of file gpu_vertex_format.cc.
References is_fetch_float().
Referenced by blender::gpu::MTLImmediate::end(), blender::GPUVertAttr::Type::fetch_mode(), is_fetch_float(), and blender::gpu::Immediate::polyline_draw_workaround().
| bool blender::gpu::is_fetch_normalized | ( | VertAttrType | attr_type | ) |
Definition at line 240 of file gpu_vertex_format.cc.
References is_fetch_normalized().
Referenced by blender::GPUVertAttr::Type::fetch_mode(), and is_fetch_normalized().
|
inline |
Definition at line 21 of file gpu_texture_private.hh.
References is_half_float().
Referenced by is_half_float(), blender::gpu::GLTexture::update_sub(), and blender::gpu::MTLTexture::update_sub().
|
inline |
Definition at line 34 of file gpu_texture_private.hh.
References is_half_integer().
Referenced by is_half_integer(), and blender::gpu::GLTexture::update_sub().
|
static |
Definition at line 482 of file vk_shader.cc.
References main_function_wrapper().
Referenced by main_function_wrapper(), and blender::gpu::VKShader::vertex_interface_declare().
|
static |
Definition at line 46 of file gl_backend.cc.
References blender::blender::StringRefBase::endswith(), blender::blender::StringRefBase::find(), match_renderer(), and blender::blender::StringRefBase::not_found.
Referenced by detect_workarounds(), and match_renderer().
|
static |
Definition at line 678 of file vk_texture.cc.
References blender::GPU_TEXTURE_USAGE_ATTACHMENT, blender::GPU_TEXTURE_USAGE_MEMORY_EXPORT, and memory_priority().
Referenced by memory_priority().
|
static |
Definition at line 144 of file vk_backend.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), blender::Array< T, InlineBufferCapacity, Allocator >::data(), and missing_capabilities_get().
Referenced by init_device_list(), blender::gpu::VKBackend::is_supported(), missing_capabilities_get(), and blender::gpu::VKBackend::supported_devices_print().
|
static |
Definition at line 323 of file mtl_backend.mm.
References mtl_extensions_get_null().
Referenced by mtl_extensions_get_null().
|
inline |
Definition at line 427 of file mtl_shader.hh.
References FORMAT_PER_TYPE, and mtl_format_component_len().
Referenced by mtl_format_component_len().
|
inline |
Definition at line 609 of file mtl_texture.hh.
References mtl_format_get_writeable_view_format().
Referenced by mtl_format_get_writeable_view_format(), and blender::gpu::MTLTexture::update_sub().
|
inline |
Definition at line 467 of file mtl_shader.hh.
References FORMAT_PER_TYPE, and mtl_format_is_normalized().
Referenced by mtl_format_is_normalized().
|
inline |
Definition at line 590 of file mtl_texture.hh.
References mtl_format_is_writable().
Referenced by mtl_format_is_writable().
| bool blender::gpu::mtl_format_supports_blending | ( | MTLPixelFormat | format | ) |
Definition at line 199 of file mtl_texture_util.mm.
References blender::gpu::MTLBackend::get_capabilities(), mtl_format_supports_blending(), blender::gpu::MTLCapabilities::supports_family_mac1, and blender::gpu::MTLCapabilities::supports_family_mac_catalyst1.
Referenced by blender::gpu::MTLShader::bake_graphic_pipeline_state(), and mtl_format_supports_blending().
|
inline |
Definition at line 254 of file mtl_shader_interface_type.hh.
References BLI_assert_msg, MTL_DATATYPE_BOOL, MTL_DATATYPE_BOOL2, MTL_DATATYPE_BOOL3, MTL_DATATYPE_BOOL4, MTL_DATATYPE_CHAR, MTL_DATATYPE_CHAR2, MTL_DATATYPE_CHAR3, MTL_DATATYPE_CHAR4, MTL_DATATYPE_FLOAT, MTL_DATATYPE_FLOAT2, MTL_DATATYPE_FLOAT2x2, MTL_DATATYPE_FLOAT2x3, MTL_DATATYPE_FLOAT2x4, MTL_DATATYPE_FLOAT3, MTL_DATATYPE_FLOAT3x2, MTL_DATATYPE_FLOAT3x3, MTL_DATATYPE_FLOAT3x4, MTL_DATATYPE_FLOAT4, MTL_DATATYPE_FLOAT4x2, MTL_DATATYPE_FLOAT4x3, MTL_DATATYPE_FLOAT4x4, MTL_DATATYPE_HALF2x2, MTL_DATATYPE_HALF2x3, MTL_DATATYPE_HALF2x4, MTL_DATATYPE_HALF3x2, MTL_DATATYPE_HALF3x3, MTL_DATATYPE_HALF3x4, MTL_DATATYPE_HALF4x2, MTL_DATATYPE_HALF4x3, MTL_DATATYPE_HALF4x4, MTL_DATATYPE_INT, MTL_DATATYPE_INT1010102_NORM, MTL_DATATYPE_INT2, MTL_DATATYPE_INT3, MTL_DATATYPE_INT4, MTL_DATATYPE_LONG, MTL_DATATYPE_LONG2, MTL_DATATYPE_LONG3, MTL_DATATYPE_LONG4, MTL_DATATYPE_PACKED_FLOAT2, MTL_DATATYPE_PACKED_FLOAT3, MTL_DATATYPE_SHORT, MTL_DATATYPE_SHORT2, MTL_DATATYPE_SHORT3, MTL_DATATYPE_SHORT4, MTL_DATATYPE_UCHAR, MTL_DATATYPE_UCHAR2, MTL_DATATYPE_UCHAR3, MTL_DATATYPE_UCHAR4, MTL_DATATYPE_UINT, MTL_DATATYPE_UINT1010102_NORM, MTL_DATATYPE_UINT2, MTL_DATATYPE_UINT3, MTL_DATATYPE_UINT4, MTL_DATATYPE_ULONG, MTL_DATATYPE_ULONG2, MTL_DATATYPE_ULONG3, MTL_DATATYPE_ULONG4, MTL_DATATYPE_USHORT, MTL_DATATYPE_USHORT2, MTL_DATATYPE_USHORT3, MTL_DATATYPE_USHORT4, and mtl_get_data_type_alignment().
Referenced by mtl_get_data_type_alignment().
|
inline |
Definition at line 92 of file mtl_shader_interface_type.hh.
References blender::BLI_assert(), MTL_DATATYPE_BOOL, MTL_DATATYPE_BOOL2, MTL_DATATYPE_BOOL3, MTL_DATATYPE_BOOL4, MTL_DATATYPE_CHAR, MTL_DATATYPE_CHAR2, MTL_DATATYPE_CHAR3, MTL_DATATYPE_CHAR4, MTL_DATATYPE_FLOAT, MTL_DATATYPE_FLOAT2, MTL_DATATYPE_FLOAT2x3, MTL_DATATYPE_FLOAT2x4, MTL_DATATYPE_FLOAT3, MTL_DATATYPE_FLOAT3x2, MTL_DATATYPE_FLOAT3x3, MTL_DATATYPE_FLOAT3x4, MTL_DATATYPE_FLOAT4, MTL_DATATYPE_FLOAT4x2, MTL_DATATYPE_FLOAT4x3, MTL_DATATYPE_FLOAT4x4, MTL_DATATYPE_HALF2x2, MTL_DATATYPE_HALF2x3, MTL_DATATYPE_HALF2x4, MTL_DATATYPE_HALF3x2, MTL_DATATYPE_HALF3x3, MTL_DATATYPE_HALF3x4, MTL_DATATYPE_HALF4x2, MTL_DATATYPE_HALF4x3, MTL_DATATYPE_HALF4x4, MTL_DATATYPE_INT, MTL_DATATYPE_INT1010102_NORM, MTL_DATATYPE_INT2, MTL_DATATYPE_INT3, MTL_DATATYPE_INT4, MTL_DATATYPE_LONG, MTL_DATATYPE_LONG2, MTL_DATATYPE_LONG3, MTL_DATATYPE_LONG4, MTL_DATATYPE_PACKED_FLOAT2, MTL_DATATYPE_PACKED_FLOAT3, MTL_DATATYPE_SHORT, MTL_DATATYPE_SHORT2, MTL_DATATYPE_SHORT3, MTL_DATATYPE_SHORT4, MTL_DATATYPE_UCHAR, MTL_DATATYPE_UCHAR2, MTL_DATATYPE_UCHAR3, MTL_DATATYPE_UCHAR4, MTL_DATATYPE_UINT, MTL_DATATYPE_UINT1010102_NORM, MTL_DATATYPE_UINT2, MTL_DATATYPE_UINT3, MTL_DATATYPE_UINT4, MTL_DATATYPE_ULONG, MTL_DATATYPE_ULONG2, MTL_DATATYPE_ULONG3, MTL_DATATYPE_ULONG4, MTL_DATATYPE_USHORT, MTL_DATATYPE_USHORT2, MTL_DATATYPE_USHORT3, MTL_DATATYPE_USHORT4, and mtl_get_data_type_size().
Referenced by mtl_get_data_type_size().
| MTLLoadAction blender::gpu::mtl_load_action_from_gpu | ( | GPULoadOp | action | ) |
Definition at line 1472 of file mtl_framebuffer.mm.
References blender::GPU_LOADACTION_CLEAR, blender::GPU_LOADACTION_LOAD, and mtl_load_action_from_gpu().
Referenced by blender::gpu::MTLFrameBuffer::bake_render_pass_descriptor(), and mtl_load_action_from_gpu().
|
inlinestatic |
Definition at line 65 of file mtl_primitive.hh.
References blender::BLI_assert(), blender::GPU_PRIM_LINE_LOOP, blender::GPU_PRIM_NONE, blender::GPU_PRIM_TRI_FAN, and mtl_needs_topology_emulation().
Referenced by mtl_needs_topology_emulation().
|
inlinestatic |
Utility functions
Definition at line 22 of file mtl_primitive.hh.
References mtl_prim_type_to_topology_class().
Referenced by mtl_prim_type_to_topology_class().
|
static |
Definition at line 253 of file mtl_state.mm.
References blender::GPU_CULL_BACK, blender::GPU_CULL_FRONT, mtl_stencil_set_op(), and mtl_stencil_set_op_separate().
Referenced by mtl_stencil_set_op().
|
static |
Definition at line 229 of file mtl_state.mm.
References blender::BLI_assert(), blender::gpu::MTLContextGlobalShaderPipelineState::depth_stencil_state, blender::gpu::MTLContextGlobalShaderPipelineState::dirty_flags, blender::GPU_CULL_BACK, blender::GPU_CULL_FRONT, MTL_PIPELINE_STATE_DEPTHSTENCIL_FLAG, mtl_stencil_set_op_separate(), 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(), and mtl_stencil_set_op_separate().
| MTLStoreAction blender::gpu::mtl_store_action_from_gpu | ( | GPUStoreOp | action | ) |
Definition at line 1479 of file mtl_framebuffer.mm.
References blender::GPU_STOREACTION_STORE, and mtl_store_action_from_gpu().
Referenced by blender::gpu::MTLFrameBuffer::bake_render_pass_descriptor(), and mtl_store_action_from_gpu().
|
inline |
Definition at line 641 of file mtl_texture.hh.
References blender::GPU_TEXTURE_USAGE_ATOMIC, blender::GPU_TEXTURE_USAGE_ATTACHMENT, blender::GPU_TEXTURE_USAGE_FORMAT_VIEW, blender::GPU_TEXTURE_USAGE_GENERAL, blender::GPU_TEXTURE_USAGE_HOST_READ, blender::GPU_TEXTURE_USAGE_SHADER_READ, blender::GPU_TEXTURE_USAGE_SHADER_WRITE, and mtl_usage_from_gpu().
Referenced by mtl_usage_from_gpu().
|
inlinestatic |
Definition at line 79 of file mtl_primitive.hh.
References blender::BLI_assert(), and mtl_vertex_count_fits_primitive_type().
Referenced by mtl_vertex_count_fits_primitive_type().
| bool blender::gpu::needs_conversion | ( | eGPUDataFormat | host_format, |
| TextureFormat | host_texture_format, | ||
| TextureFormat | device_format ) |
Check if data conversion is needed when uploading host_format to a device_format.
| host_format | format of the host buffer. |
| host_texture_format | texture format of the host buffer. |
| device_format | format of the device buffer. |
Definition at line 1180 of file vk_data_conversion.cc.
References host_to_device(), needs_conversion(), and PASS_THROUGH.
Referenced by needs_conversion(), and blender::gpu::VKTexture::update_sub().
|
static |
Definition at line 117 of file vk_immediate.cc.
References DEFAULT_INTERNAL_BUFFER_SIZE, blender::max_ulul(), and new_buffer_size().
Referenced by new_buffer_size().
Definition at line 62 of file gpu_state_private.hh.
References b, and operator!=().
Referenced by operator!=(), and operator!=().
|
inline |
Definition at line 109 of file gpu_state_private.hh.
References b, and operator!=().
|
inline |
Definition at line 734 of file gpu_shader_preprocessor.cc.
References operator<<(), blender::gpu::PruningStream::parse_token(), and lexit::Token::str_with_whitespace().
|
inline |
Definition at line 727 of file gpu_shader_preprocessor.cc.
References blender::gpu::TokenRange< IToken >::begin, blender::gpu::TokenRange< IToken >::end, operator<<(), and blender::gpu::PruningStream::parse_token_range().
|
inline |
Definition at line 715 of file gpu_shader_preprocessor.cc.
References operator<<(), blender::gpu::PruningStream::parse_token(), blender::gpu::PruningStream::str(), and blender::gpu::TokenStream::tokens.
Referenced by operator<<(), operator<<(), and operator<<().
| std::ostream & blender::gpu::operator<< | ( | std::ostream & | os, |
| const VKDiscardPool & | discard_pool ) |
Definition at line 210 of file vk_resource_pool.cc.
Definition at line 57 of file gpu_state_private.hh.
References b, blender::gpu::GPUState::data, and operator==().
Referenced by operator==(), operator==(), operator==(), and blender::gpu::render_graph::VKRenderGraph::VKScheduler.
|
inline |
Definition at line 104 of file gpu_state_private.hh.
References b, blender::gpu::GPUStateMutable::data, and operator==().
| BLI_INLINE bool blender::gpu::operator== | ( | const VKContext & | a, |
| const VKContext & | b ) |
Definition at line 180 of file vk_context.hh.
References b, BLI_INLINE, and operator==().
Definition at line 67 of file gpu_state_private.hh.
References b, blender::gpu::GPUState::data, and operator^().
Referenced by operator^(), and operator^().
|
inline |
Definition at line 114 of file gpu_state_private.hh.
References blender::ARRAY_SIZE(), b, blender::gpu::GPUStateMutable::data, and operator^().
Definition at line 74 of file gpu_state_private.hh.
References blender::gpu::GPUState::data, and operator~().
Referenced by operator~(), and operator~().
|
inline |
Definition at line 123 of file gpu_state_private.hh.
References blender::ARRAY_SIZE(), blender::gpu::GPUStateMutable::data, and operator~().
|
static |
Definition at line 18 of file mtl_ray_tracing.mm.
References blender::gpu::shader::metadata::out, and pack_transform().
Referenced by blender::gpu::MTLTopLevelAS::build(), and pack_transform().
|
static |
Definition at line 15 of file mtl_push_constant.cc.
References float, padded_size(), push_constant, and blender::gpu::shader::to_component_count().
Referenced by blender::gpu::MTLPushConstantBuf::append(), blender::gpu::MTLPushConstantBuf::MTLPushConstantBuf(), and padded_size().
|
static |
Definition at line 57 of file gl_backend.cc.
References blender::IndexRange::IndexRange(), parse_version(), and blender::v.
Referenced by is_bad_AMD_driver(), and parse_version().
| void blender::gpu::patch_create_info_atomic_workaround | ( | std::unique_ptr< PatchedShaderCreateInfo > & | patched_info, |
| const shader::ShaderCreateInfo & | original_info ) |
Definition at line 1539 of file mtl_shader_generate.cc.
References blender::gpu::shader::ShaderCreateInfo::Resource::ACCELERATION_STRUCTURE, available_buffer_slots(), blender::gpu::shader::ShaderCreateInfo::batch_resources_, blender::bitscan_forward_clear_uint(), ELEM, blender::gpu::shader::ShaderCreateInfo::geometry_resources_, blender::gpu::shader::ShaderCreateInfo::Resource::IMAGE, blender::gpu::shader::ShaderCreateInfo::pass_resources_, patch_create_info_atomic_workaround(), blender::gpu::shader::read_write, blender::gpu::shader::ShaderCreateInfo::Resource::SAMPLER, blender::gpu::shader::ShaderCreateInfo::Resource::STORAGE_BUFFER, to_component_type(), blender::gpu::shader::uint4_t, and blender::gpu::shader::ShaderCreateInfo::Resource::UNIFORM_BUFFER.
Referenced by blender::gpu::MTLShader::patch_create_info(), and patch_create_info_atomic_workaround().
|
static |
Definition at line 318 of file vk_shader_compiler.cc.
References patch_line_directives().
Referenced by compile_ex(), and patch_line_directives().
|
static |
Definition at line 352 of file mtl_index_buffer.mm.
References populate_emulated_tri_fan_buf(), and T.
Referenced by blender::gpu::MTLIndexBuf::get_index_buffer(), and populate_emulated_tri_fan_buf().
|
static |
Definition at line 295 of file mtl_index_buffer.mm.
References populate_optimized_tri_strip_buf(), and T.
Referenced by blender::gpu::MTLIndexBuf::get_index_buffer(), and populate_optimized_tri_strip_buf().
|
static |
Populates values with the given SpecializationStateDescriptor values. Setup function specialization constants, used to modify and optimize generated code based on current render pipeline configuration. Note: Returns a retained object.
Definition at line 554 of file mtl_shader.mm.
References BLI_assert_msg, blender::gpu::shader::bool_t, blender::gpu::shader::float_t, blender::gpu::shader::int_t, MTL_SPECIALIZATION_CONSTANT_OFFSET, populate_specialization_constant_values(), blender::gpu::shader::SpecializationConstants::types, blender::gpu::shader::uint_t, and blender::gpu::SpecializationStateDescriptor::values.
Referenced by blender::gpu::MTLShader::bake_compute_pipeline_state(), blender::gpu::MTLShader::bake_graphic_pipeline_state(), and populate_specialization_constant_values().
| void blender::gpu::present | ( | MTLRenderPassDescriptor * | blit_descriptor, |
| id< MTLRenderPipelineState > | blit_pso, | ||
| id< MTLTexture > | swapchain_texture, | ||
| id< CAMetalDrawable > | drawable ) |
Definition at line 2000 of file mtl_context.mm.
References blender::gpu::MTLBufferPool::acquire_current_safe_list(), blender::gpu::MTLContext::avg_drawable_latency_us, blender::BLI_assert(), blender::BLI_time_sleep_ms(), CLOG_ERROR, blender::gpu::MTLCommandBufferManager::dec_active_command_buffer_count(), blender::gpu::MTLSafeFreeList::decrement_reference(), blender::gpu::MTLContext::flush(), blender::G, blender::G_DEBUG_GPU, blender::gpu::MTLContext::get(), blender::gpu::MTLContext::get_global_memory_manager(), blender::gpu::MTLCommandBufferManager::inc_active_command_buffer_count(), blender::gpu::MTLContext::latency_resolve_average(), LOG, blender::gpu::MTLContext::main_command_buffer, blender::gpu::MTLContext::max_drawables_in_flight, blender::min_ii(), MTL_LOG_DEBUG, MTL_MAX_DRAWABLES, blender::gpu::MTLCommandBufferManager::num_active_cmd_bufs_in_system, present(), and blender::gpu::MTLContext::queue.
Referenced by blender::gpu::MTLContext::MTLContext(), and present().
|
static |
Definition at line 211 of file vk_shader.cc.
References blender::gpu::shader::ShaderCreateInfo::Resource::IMAGE, and print_image_type().
Referenced by print_image_type(), and print_resource().
|
static |
Definition at line 467 of file vk_shader.cc.
References blender::gpu::shader::StageInterfaceInfo::instance_name, blender::blender::StringRefBase::is_empty(), print_interface(), print_interface_as_attributes(), and print_interface_as_struct().
Referenced by blender::gpu::VKShader::fragment_interface_declare(), blender::gpu::VKShader::geometry_interface_declare(), print_interface(), and blender::gpu::VKShader::vertex_interface_declare().
|
static |
Definition at line 432 of file vk_shader.cc.
References get_location_count(), blender::gpu::shader::metadata::inout, blender::gpu::shader::StageInterfaceInfo::inouts, print_interface_as_attributes(), and to_string().
Referenced by print_interface(), and print_interface_as_attributes().
|
static |
Definition at line 445 of file vk_shader.cc.
References get_location_count(), blender::gpu::shader::metadata::inout, blender::gpu::shader::StageInterfaceInfo::inouts, blender::gpu::shader::StageInterfaceInfo::instance_name, blender::gpu::shader::StageInterfaceInfo::name, print_interface_as_struct(), and to_string().
Referenced by print_interface(), and print_interface_as_struct().
|
static |
Definition at line 340 of file vk_shader.cc.
References blender::gpu::shader::no_restrict, print_qualifier(), blender::gpu::shader::read, and blender::gpu::shader::write.
Referenced by print_qualifier(), and print_resource().
|
static |
Definition at line 354 of file vk_shader.cc.
References blender::gpu::shader::ShaderCreateInfo::Resource::ACCELERATION_STRUCTURE, blender::ShaderCreateInfo::Resource::bind_type, blender::gpu::shader::ShaderCreateInfo::Resource::IMAGE, print_image_type(), print_qualifier(), print_resource(), blender::gpu::shader::ShaderCreateInfo::Resource::SAMPLER, blender::gpu::shader::ShaderCreateInfo::Resource::STORAGE_BUFFER, to_string(), and blender::gpu::shader::ShaderCreateInfo::Resource::UNIFORM_BUFFER.
Referenced by blender::gpu::VKShader::fragment_interface_declare(), print_resource(), print_resource(), print_resource(), and blender::gpu::VKShader::resources_declare().
|
static |
Definition at line 398 of file vk_shader.cc.
References blender::gpu::VKShaderInterface::descriptor_set_location(), and print_resource().
|
static |
Definition at line 407 of file vk_shader.cc.
References blender::assign_if_different(), blender::ShaderCreateInfo::Resource::info_name, and print_resource().
| void blender::gpu::printf_begin | ( | Context * | ctx | ) |
Definition at line 382 of file gpu_shader_log.cc.
References blender::gpu::shader::gpu_shader_dependency_has_printf(), GPU_SHADER_PRINTF_MAX_CAPACITY, blender::GPU_storagebuf_clear_to_zero(), GPU_storagebuf_create, printf_begin(), and blender::gpu::Context::printf_buf.
Referenced by blender::GPU_render_begin(), blender::GPU_render_step(), and printf_begin().
| void blender::gpu::printf_end | ( | Context * | ctx | ) |
Definition at line 399 of file gpu_shader_log.cc.
References BLI_assert_unreachable, blender::data, blender::gpu::shader::PrintfFormat::Block::FLOAT, blender::gpu::shader::PrintfFormat::Block::fmt, blender::gpu::shader::gpu_shader_dependency_get_printf_format(), GPU_SHADER_PRINTF_MAX_CAPACITY, blender::GPU_storagebuf_free(), blender::GPU_storagebuf_read(), blender::gpu::shader::PrintfFormat::Block::INT, blender::gpu::shader::PrintfFormat::Block::NONE, blender::gpu::shader::metadata::printf, blender::gpu::Context::printf_buf, printf_end(), str, blender::gpu::shader::PrintfFormat::Block::STRING, blender::gpu::shader::PrintfFormat::Block::type, and blender::gpu::shader::PrintfFormat::Block::UINT.
Referenced by blender::GPU_context_discard(), blender::GPU_render_end(), blender::GPU_render_step(), and printf_end().
| std::string blender::gpu::ptr_type | ( | const ResourceString & | str | ) |
Definition at line 483 of file mtl_shader_generate.cc.
References ptr_type(), and str.
Referenced by blender::ui::but_pointer_type_for(), blender::ui::button_string_get_ex(), blender::ui::button_string_set(), ptr_type(), and blender::pyrna_py_to_prop().
|
static |
Definition at line 73 of file vk_shader_compiler.cc.
References blender::BLI_exists(), blender::BLI_file_touch(), blender::gpu::VKShaderModule::build_sources_hash(), cache_dir_get(), CLOG_TRACE, lexit::Vector< T >::data(), blender::G, blender::G_DEBUG_GPU_SHADER_DEBUG_INFO, LOG, read_spirv_from_disk(), lexit::Vector< T >::resize(), SEP_STR, blender::gpu::VKShaderModule::sources_hash, blender::gpu::VKShaderModule::spirv_binary, blender::gpu::SPIRVSidecar::spirv_size, spirv_target_version_get(), and blender::gpu::SPIRVSidecar::spirv_version.
Referenced by compile_ex(), and read_spirv_from_disk().
| std::string blender::gpu::ref_type | ( | const ResourceString & | str, |
| const std::string & | attribute = "" ) |
Definition at line 475 of file mtl_shader_generate.cc.
References attribute, ref_type(), and str.
Referenced by generate_buffer(), generate_shared_variable(), and ref_type().
| void blender::gpu::remap_components_3to4_front_to_back | ( | MutableSpan< ComponentType > | components, |
| int64_t | size, | ||
| ComponentType | component_4_value ) |
Inline remapping from 3 components to 4 components where the data is stored at the end of the buffer.
Definition at line 978 of file vk_data_conversion.cc.
References blender::IndexRange::IndexRange(), and remap_components_3to4_front_to_back().
Referenced by convert_buffer(), and remap_components_3to4_front_to_back().
|
static |
Reserve space for the given type and array size.
This function doesn't handle alignment this needs to be done up front by calling 'align<Layout>' function. Caller is responsible for this.
'type': The type that needs to be reserved. 'array_size': The array_size that needs to be reserved. (0=no array). 'r_offset': When calling needs to be pointing to the aligned location where to reserve space. After the call it will point to the byte just after reserved space.
Definition at line 101 of file vk_memory_layout.hh.
References array_stride(), and element_stride().
|
static |
Definition at line 637 of file vk_data_conversion.cc.
References CASE_PAIR, blender::FLOAT, blender::HALF, PASS_THROUGH, PASS_THROUGH_D32F_S8, reversed(), and UNSUPPORTED.
Referenced by convert_device_to_host(), and reversed().
|
inlinestatic |
Definition at line 40 of file gl_shader_interface.cc.
References sampler_binding().
Referenced by blender::gpu::GLShaderInterface::GLShaderInterface(), and sampler_binding().
|
static |
Definition at line 310 of file vk_framebuffer.cc.
References blender::GPULoadStore::clear_value, blender::GPULoadStore::load_action, set_load_store(), blender::GPULoadStore::store_action, to_vk_attachment_load_op(), to_vk_attachment_store_op(), and to_vk_clear_color_value().
Referenced by blender::gpu::VKFrameBuffer::rendering_ensure_dynamic_rendering(), and set_load_store().
|
static |
Definition at line 328 of file vk_shader_interface.cc.
References shader_input_index().
Referenced by shader_input_index().
| std::string blender::gpu::shader_stage_define | ( | const ShaderStage | stage | ) |
Definition at line 67 of file mtl_shader.mm.
References BLI_assert_unreachable, COMPUTE, FRAGMENT, shader_stage_define(), and VERTEX.
Referenced by shader_stage_define().
|
static |
Definition at line 36 of file gpu_shader_interface.cc.
References blender::MutableSpan< T >::copy_from(), blender::MutableSpan< T >::data(), blender::MutableSpan< T >::is_empty(), blender::gpu::ShaderInput::name_hash, blender::MutableSpan< T >::size(), sort_input_list(), and blender::Vector< T, InlineBufferCapacity, Allocator >::Vector.
Referenced by sort_input_list(), and blender::gpu::ShaderInterface::sort_inputs().
|
static |
Injects an "OpString" holding the shader name into the SPIR-V binary, and references it via an "OpSource" instruction. This is not necessary when G_DEBUG_GPU_SHADER_DEBUG_INFO is used, as then shaderc/glslang will generate this OpString together with an OpSource instruction that contains the full GLSL source code.
This way, the human-readable shader name can be found/referenced when inspecting the binary or debugging even when not using the flag G_DEBUG_GPU_SHADER_DEBUG_INFO.
Definition at line 213 of file vk_shader_compiler.cc.
References BLI_assert_msg, blender::blender::StringRefBase::data(), blender::Span< T >::data(), lexit::Vector< T >::data(), blender::divide_ceil_u(), blender::Span< T >::drop_front(), ELEM, length(), lexit::Vector< T >::reserve(), lexit::Vector< T >::resize(), blender::blender::StringRefBase::size(), blender::Span< T >::size(), lexit::Vector< T >::size(), spirv_inject_op_string(), and blender::Span< T >::take_front().
Referenced by compile_ex(), and spirv_inject_op_string().
|
static |
Definition at line 67 of file vk_shader_compiler.cc.
References blender::gpu::VKBackend::device, blender::gpu::VKDevice::extensions_get(), blender::gpu::VKBackend::get(), blender::gpu::VKExtensions::spirv_1_4, and spirv_target_version_get().
Referenced by read_spirv_from_disk(), spirv_target_version_get(), and write_spirv_to_disk().
Definition at line 141 of file gl_shader_interface.cc.
References ssbo_binding().
Referenced by blender::gpu::GLShaderInterface::GLShaderInterface(), and ssbo_binding().
| uint32_t blender::gpu::struct_size | ( | Span< shader::ShaderCreateInfo::PushConst > | push_constants | ) |
Definition at line 41 of file vk_push_constants.cc.
References align(), push_constant, and struct_size().
Referenced by blender::BLO_read_struct_by_name_array(), blender::BLO_Write_IDBuffer::BLO_Write_IDBuffer(), blender::gpu::VKPushConstants::Layout::determine_storage_type(), blender::linestyle_modifiers_read(), blender::dna::print_struct_array_recursive(), struct_size(), and blender::dna::TEST_F().
| bool blender::gpu::supports_barycentric_whitelist | ( | id< MTLDevice > | device | ) |
Definition at line 328 of file mtl_backend.mm.
References blender::BLI_assert(), length(), and supports_barycentric_whitelist().
Referenced by blender::gpu::MTLBackend::metal_is_supported(), and supports_barycentric_whitelist().
|
inline |
Definition at line 208 of file gl_texture.hh.
References swizzle_to_gl().
Referenced by blender::gpu::GLTexture::swizzle_set(), and swizzle_to_gl().
|
static |
Definition at line 1429 of file mtl_texture.mm.
References swizzle_to_mtl().
Referenced by blender::gpu::MTLTexture::swizzle_set(), and swizzle_to_mtl().
| blender::gpu::TEST | ( | std140 | , |
| _2fl | ) |
Definition at line 34 of file vk_memory_layout_test.cc.
References def_attr(), blender::EXPECT_EQ(), blender::gpu::shader::float_t, and TEST().
| blender::gpu::TEST | ( | std140 | , |
| _3fl | ) |
Definition at line 45 of file vk_memory_layout_test.cc.
References def_attr(), blender::EXPECT_EQ(), blender::gpu::shader::float_t, and TEST().
| blender::gpu::TEST | ( | std140 | , |
| _4fl | ) |
Definition at line 57 of file vk_memory_layout_test.cc.
References def_attr(), blender::EXPECT_EQ(), blender::gpu::shader::float_t, and TEST().
| blender::gpu::TEST | ( | std140 | , |
| fl | ) |
Definition at line 24 of file vk_memory_layout_test.cc.
References def_attr(), blender::EXPECT_EQ(), blender::gpu::shader::float_t, and TEST().
Referenced by TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), and TEST().
| blender::gpu::TEST | ( | std140 | , |
| fl2 | ) |
Definition at line 70 of file vk_memory_layout_test.cc.
References def_attr(), blender::EXPECT_EQ(), blender::gpu::shader::float_t, and TEST().
| blender::gpu::TEST | ( | std140 | , |
| fl_fl2 | ) |
Definition at line 80 of file vk_memory_layout_test.cc.
References def_attr(), blender::EXPECT_EQ(), blender::gpu::shader::float_t, and TEST().
| blender::gpu::TEST | ( | std140 | , |
| fl_vec2 | ) |
Definition at line 91 of file vk_memory_layout_test.cc.
References def_attr(), blender::EXPECT_EQ(), blender::gpu::shader::float2_t, blender::gpu::shader::float_t, and TEST().
| blender::gpu::TEST | ( | std140 | , |
| gpu_shader_2D_widget_base | ) |
Definition at line 102 of file vk_memory_layout_test.cc.
References blender::gpu::shader::bool_t, def_attr(), blender::EXPECT_EQ(), blender::gpu::shader::float3_t, blender::gpu::shader::float4_t, blender::gpu::shader::float4x4_t, gpu_shader_2D_widget_base, and TEST().
| blender::gpu::TEST | ( | std430 | , |
| compositor_cryptomatte_matte_compute | ) |
Definition at line 137 of file vk_memory_layout_test.cc.
References def_attr(), blender::EXPECT_EQ(), blender::gpu::shader::float2_t, blender::gpu::shader::float_t, and TEST().
| blender::gpu::TEST | ( | std430 | , |
| overlay_grid | ) |
Definition at line 115 of file vk_memory_layout_test.cc.
References def_attr(), blender::EXPECT_EQ(), blender::gpu::shader::float3_t, blender::gpu::shader::int_t, and TEST().
| blender::gpu::TEST | ( | std430 | , |
| simple_lighting | ) |
Definition at line 126 of file vk_memory_layout_test.cc.
References def_attr(), blender::EXPECT_EQ(), blender::gpu::shader::float3x3_t, blender::gpu::shader::float4x4_t, and TEST().
|
inline |
Definition at line 537 of file mtl_texture.hh.
References blender::BLI_assert(), blender::GPU_DATA_10_11_11_REV, blender::GPU_DATA_2_10_10_10_REV, blender::GPU_DATA_FLOAT, blender::GPU_DATA_HALF_FLOAT, blender::GPU_DATA_INT, blender::GPU_DATA_UBYTE, blender::GPU_DATA_UINT, blender::GPU_DATA_UINT_24_8_DEPRECATED, and tex_data_format_to_msl_texture_template_type().
Referenced by tex_data_format_to_msl_texture_template_type(), and blender::gpu::MTLTexture::update_sub().
|
inline |
Definition at line 511 of file mtl_texture.hh.
References blender::BLI_assert(), blender::GPU_DATA_10_11_11_REV, blender::GPU_DATA_2_10_10_10_REV, blender::GPU_DATA_FLOAT, blender::GPU_DATA_HALF_FLOAT, blender::GPU_DATA_INT, blender::GPU_DATA_UBYTE, blender::GPU_DATA_UINT, blender::GPU_DATA_UINT_24_8_DEPRECATED, and tex_data_format_to_msl_type_str().
Referenced by tex_data_format_to_msl_type_str(), and blender::gpu::MTLTexture::update_sub().
| StringRefNull blender::gpu::to_access | ( | const bool | is_sampler, |
| const shader::Qualifier | qualifier ) |
Definition at line 590 of file mtl_shader_generate.cc.
References blender::BLI_assert(), blender::gpu::shader::read, blender::gpu::shader::read_write, to_access(), and blender::gpu::shader::write.
Referenced by generate_texture(), and to_access().
|
static |
Definition at line 16 of file vk_shader_interface.cc.
References ACCELERATION_STRUCTURE, blender::gpu::shader::ShaderCreateInfo::Resource::ACCELERATION_STRUCTURE, BLI_assert_unreachable, IMAGE, blender::gpu::shader::ShaderCreateInfo::Resource::IMAGE, SAMPLER, blender::gpu::shader::ShaderCreateInfo::Resource::SAMPLER, blender::gpu::shader::ShaderCreateInfo::Resource::STORAGE_BUFFER, STORAGE_BUFFER, to_bind_type(), blender::gpu::shader::ShaderCreateInfo::Resource::UNIFORM_BUFFER, and UNIFORM_BUFFER.
Referenced by blender::gpu::VKShaderInterface::descriptor_set_location(), and to_bind_type().
|
inline |
Definition at line 400 of file gpu_texture_private.hh.
References BLI_assert_msg, and to_block_size().
Referenced by blender::GPU_texture_create_compressed_2d(), to_block_size(), blender::gpu::GLTexture::update_sub(), blender::gpu::MTLTexture::update_sub(), and blender::gpu::VKTexture::update_sub().
|
inline |
Definition at line 231 of file GPU_format.hh.
References BLI_assert_unreachable, CASE, GPU_DATA_FORMAT_EXPAND, Invalid, and to_bytesize().
Referenced by blender::gpu::MTLBottomLevelAS::add_geometry(), check_texture_format_compatability(), convert_buffer(), blender::gpu::GLIndexBuf::copy_sub(), blender::gpu::MTLIndexBuf::copy_sub(), blender::gpu::VKIndexBuffer::copy_sub(), blender::gpu::FrameBuffer::get_bits_per_pixel(), get_compatible_texture_format(), blender::GPU_texture_dataformat_size(), blender::gpu::MTLFrameBuffer::read(), blender::gpu::Texture::read_size_get(), blender::gpu::VKTexture::read_sub(), blender::GPUVertAttr::Type::size(), blender::gpu::IndexBuf::size_get(), blender::gpu::tests::texture_create_upload_read(), to_bytesize(), to_bytesize(), to_bytesize(), to_bytesize(), to_bytesize(), blender::gpu::GLTexture::update_sub(), blender::gpu::MTLTexture::update_sub(), blender::gpu::MTLTexture::update_sub(), and blender::gpu::VKTexture::update_sub().
|
inline |
Definition at line 559 of file gpu_texture_private.hh.
References BLI_assert_unreachable, blender::GPU_DATA_10_11_11_REV, blender::GPU_DATA_2_10_10_10_REV, blender::GPU_DATA_FLOAT, blender::GPU_DATA_HALF_FLOAT, blender::GPU_DATA_INT, blender::GPU_DATA_UBYTE, blender::GPU_DATA_UINT, blender::GPU_DATA_UINT_24_8_DEPRECATED, and to_bytesize().
|
inline |
Definition at line 31 of file GPU_index_buffer.hh.
References GPU_INDEX_U32, and to_bytesize().
|
inline |
Definition at line 395 of file gpu_texture_private.hh.
References to_bytesize().
|
inline |
Definition at line 579 of file gpu_texture_private.hh.
References blender::GPU_DATA_10_11_11_REV, blender::GPU_DATA_2_10_10_10_REV, to_bytesize(), and to_component_len().
|
inline |
Definition at line 554 of file gpu_texture_private.hh.
References format_component_len(), and to_component_len().
Referenced by blender::gpu::MTLTexture::clear(), convert_buffer(), convert_per_component(), blender::gpu::FrameBuffer::get_bits_per_pixel(), blender::GPU_texture_clear(), blender::GPU_texture_component_len(), blender::gpu::MTLTexture::read(), blender::gpu::tests::texture_create_upload_read(), blender::gpu::tests::texture_create_upload_read_with_bias(), blender::gpu::tests::texture_view_create_format_test(), to_bytesize(), to_component_len(), blender::gpu::GLTexture::update_sub(), blender::gpu::MTLTexture::update_sub(), and blender::gpu::MTLTexture::update_sub().
Definition at line 926 of file vk_shader.cc.
References BLI_assert_unreachable, blender::gpu::shader::bool_t, blender::gpu::shader::char2_t, blender::gpu::shader::char3_t, blender::gpu::shader::char4_t, blender::gpu::shader::char_t, blender::gpu::shader::float2_t, blender::gpu::shader::float3_10_10_10_2_t, blender::gpu::shader::float3_t, blender::gpu::shader::float3x3_t, blender::gpu::shader::float4_t, blender::gpu::shader::float4x4_t, blender::gpu::shader::float_t, blender::gpu::shader::int2_t, blender::gpu::shader::int3_t, blender::gpu::shader::int4_t, blender::gpu::shader::int_t, blender::gpu::shader::short2_t, blender::gpu::shader::short3_t, blender::gpu::shader::short4_t, blender::gpu::shader::short_t, to_component_type(), blender::gpu::shader::uchar2_t, blender::gpu::shader::uchar3_t, blender::gpu::shader::uchar4_t, blender::gpu::shader::uchar_t, blender::gpu::shader::uint2_t, blender::gpu::shader::uint3_t, blender::gpu::shader::uint4_t, blender::gpu::shader::uint_t, blender::gpu::shader::ushort2_t, blender::gpu::shader::ushort3_t, blender::gpu::shader::ushort4_t, and blender::gpu::shader::ushort_t.
Referenced by blender::gpu::VKShader::fragment_interface_declare().
|
static |
Definition at line 256 of file mtl_shader_generate.cc.
References BLI_assert_unreachable, and to_component_type().
Referenced by generate_texture(), patch_create_info_atomic_workaround(), to_component_type(), and to_component_type().
|
constexpr |
Definition at line 132 of file GPU_texture.hh.
References to_data_format().
Referenced by blender::GPUVertAttr::Type::comp_len(), blender::GPUVertAttr::Type::size(), to_data_format(), and to_data_format().
|
constexpr |
Definition at line 152 of file GPU_vertex_format.hh.
References to_data_format().
|
inline |
Definition at line 417 of file gpu_texture_private.hh.
References BLI_assert_unreachable, GPU_FORMAT_COMPRESSED, GPU_FORMAT_DEPTH, GPU_FORMAT_DEPTH_STENCIL, GPU_FORMAT_FLOAT, GPU_FORMAT_INTEGER, GPU_FORMAT_NORMALIZED_INTEGER, GPU_FORMAT_SIGNED, GPU_FORMAT_SRGB, Invalid, and to_format_flag().
Referenced by blender::gpu::VKTexturePool::acquire_texture_impl(), check_texture_format_compatability(), blender::gpu::shader::PipelineState::color_format(), blender::gpu::shader::PipelineState::depth_format(), get_compatible_texture_format(), 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(), blender::gpu::VKTexture::init_swapchain(), blender::gpu::Texture::init_view(), blender::gpu::shader::PipelineState::stencil_format(), and to_format_flag().
|
inline |
Definition at line 819 of file gpu_texture_private.hh.
References BLI_assert_msg, BLI_assert_unreachable, blender::GPU_COLOR_BIT, blender::GPU_DEPTH_BIT, blender::GPU_STENCIL_BIT, Invalid, and to_framebuffer_bits().
Referenced by to_framebuffer_bits().
|
inlinestatic |
Definition at line 131 of file gl_framebuffer.hh.
References ATTACHMENT, blender::BLI_assert(), and to_gl().
|
inlinestatic |
Definition at line 157 of file gl_framebuffer.hh.
References blender::GPU_COLOR_BIT, blender::GPU_DEPTH_BIT, blender::GPU_STENCIL_BIT, and to_gl().
|
inline |
Definition at line 231 of file gl_texture.hh.
References BLI_assert_msg, blender::GPU_DATA_10_11_11_REV, blender::GPU_DATA_2_10_10_10_REV, blender::GPU_DATA_FLOAT, blender::GPU_DATA_HALF_FLOAT, blender::GPU_DATA_INT, blender::GPU_DATA_UBYTE, blender::GPU_DATA_UINT, blender::GPU_DATA_UINT_24_8_DEPRECATED, and to_gl().
Referenced by blender::gpu::GLVertBuf::bind(), blender::gpu::GLFrameBuffer::blit_to(), blender::gpu::GLFrameBuffer::clear(), blender::gpu::GLFrameBuffer::clear_attachment(), blender::gpu::GLUniformBuf::clear_to_zero(), blender::gpu::GLBatch::draw(), blender::gpu::GLBatch::draw_indirect(), blender::gpu::GLImmediate::end(), blender::gpu::GLQueryPool::init(), blender::gpu::GLStateManager::issue_barrier(), blender::gpu::GLBatch::multi_draw_indirect(), blender::gpu::GLFrameBuffer::read(), blender::gpu::GLFrameBuffer::subpass_transition_impl(), to_gl(), to_gl(), to_gl(), to_gl(), to_gl(), to_gl(), to_gl(), to_gl(), to_gl(), to_gl(), and vbo_bind().
|
inlinestatic |
Definition at line 120 of file gl_state.hh.
References barrier(), blender::GPU_BARRIER_BUFFER_UPDATE, blender::GPU_BARRIER_COMMAND, blender::GPU_BARRIER_ELEMENT_ARRAY, blender::GPU_BARRIER_FRAMEBUFFER, blender::GPU_BARRIER_SHADER_IMAGE_ACCESS, blender::GPU_BARRIER_SHADER_STORAGE, blender::GPU_BARRIER_TEXTURE_FETCH, blender::GPU_BARRIER_TEXTURE_UPDATE, blender::GPU_BARRIER_UNIFORM, blender::GPU_BARRIER_VERTEX_ATTRIB_ARRAY, and to_gl().
|
inlinestatic |
Definition at line 68 of file gl_index_buffer.hh.
References GPU_INDEX_U32, and to_gl().
|
inlinestatic |
Definition at line 19 of file gl_primitive.hh.
References blender::BLI_assert(), blender::GPU_PRIM_LINE_LOOP, blender::GPU_PRIM_LINE_STRIP, blender::GPU_PRIM_LINE_STRIP_ADJ, blender::GPU_PRIM_LINES, blender::GPU_PRIM_LINES_ADJ, blender::GPU_PRIM_NONE, blender::GPU_PRIM_POINTS, blender::GPU_PRIM_TRI_FAN, blender::GPU_PRIM_TRI_STRIP, blender::GPU_PRIM_TRIS, blender::GPU_PRIM_TRIS_ADJ, and to_gl().
|
inlinestatic |
Definition at line 46 of file gl_query.hh.
References blender::BLI_assert(), GPU_QUERY_OCCLUSION, and to_gl().
|
inlinestatic |
A function that maps GPUSamplerExtendMode values to their OpenGL enum counterparts.
Definition at line 610 of file gl_texture.cc.
References BLI_assert_unreachable, blender::GPU_SAMPLER_EXTEND_MODE_CLAMP_TO_BORDER, blender::GPU_SAMPLER_EXTEND_MODE_EXTEND, blender::GPU_SAMPLER_EXTEND_MODE_MIRRORED_REPEAT, blender::GPU_SAMPLER_EXTEND_MODE_REPEAT, and to_gl().
Referenced by blender::gpu::GLTexture::read(), blender::gpu::GLTexture::samplers_init(), blender::gpu::GLTexture::update_sub(), and blender::gpu::GLTexture::update_sub().
|
inlinestatic |
Definition at line 63 of file gl_vertex_buffer.hh.
References blender::BLI_assert(), blender::GPU_USAGE_DEVICE_ONLY, blender::GPU_USAGE_DYNAMIC, blender::GPU_USAGE_STATIC, blender::GPU_USAGE_STREAM, and to_gl().
|
inlinestatic |
Definition at line 79 of file gl_vertex_buffer.hh.
References blender::BLI_assert(), blender::GPU_COMP_F32, blender::GPU_COMP_I10, blender::GPU_COMP_I16, blender::GPU_COMP_I32, blender::GPU_COMP_I8, blender::GPU_COMP_U16, blender::GPU_COMP_U32, blender::GPU_COMP_U8, and to_gl().
|
inline |
Definition at line 256 of file gl_texture.hh.
References BLI_assert_msg, Invalid, and to_gl_data_format().
Referenced by blender::gpu::GLUniformBuf::clear_to_zero(), blender::gpu::GLTexture::read(), to_gl_data_format(), blender::gpu::GLTexture::update_sub(), and blender::gpu::GLTexture::update_sub().
|
inline |
Definition at line 143 of file gl_texture.hh.
References BLI_assert_msg, CASE, GPU_TEXTURE_FORMAT_EXPAND, Invalid, and to_gl_internal_format().
Referenced by blender::gpu::GLUniformBuf::clear_to_zero(), blender::gpu::GLStateManager::image_bind(), blender::gpu::GLTexture::init_internal(), blender::gpu::GLTexture::init_internal(), blender::gpu::GLTexture::init_internal(), and to_gl_internal_format().
|
inline |
Definition at line 184 of file gl_texture.hh.
References blender::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 to_gl_proxy().
Referenced by to_gl_proxy().
|
inline |
Definition at line 159 of file gl_texture.hh.
References blender::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 to_gl_target().
Referenced by blender::gpu::GLTexture::init_internal(), blender::gpu::GLTexture::init_internal(), blender::gpu::GLTexture::init_internal(), and to_gl_target().
| TextureFormat blender::gpu::to_gpu_format | ( | const VkFormat | format | ) |
Definition at line 122 of file vk_common.cc.
References BLI_assert_unreachable, to_gpu_format(), and VK_FORMAT_R8G8B8A8_UNORM.
Referenced by blender::gpu::VKContext::sync_backbuffer(), and to_gpu_format().
| std::string blender::gpu::to_gpu_format_string | ( | VkFormat | format | ) |
Definition at line 138 of file vk_common.cc.
References BLI_assert_unreachable, CASE, GPU_TEXTURE_TARGET_FORMAT_EXPAND, and to_gpu_format_string().
Referenced by blender::gpu::VKGraphicsInfo::pipeline_info_source(), and to_gpu_format_string().
|
inline |
Definition at line 563 of file mtl_texture.hh.
References BLI_assert_unreachable, 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 to_metal_type().
Referenced by to_metal_type().
|
inline |
Definition at line 343 of file mtl_shader.hh.
References BLI_assert_msg, BLI_assert_unreachable, Float, FORMAT_PER_COMP, FORMAT_PER_COMP_INT, FORMAT_PER_COMP_SMALL_INT, blender::GPU_COMP_F32, blender::GPU_COMP_I10, blender::GPU_COMP_I16, blender::GPU_COMP_I32, blender::GPU_COMP_I8, blender::GPU_COMP_MAX, blender::GPU_COMP_U16, blender::GPU_COMP_U32, blender::GPU_COMP_U8, blender::GPU_FETCH_FLOAT, blender::GPU_FETCH_INT, blender::GPU_FETCH_INT_TO_FLOAT_UNIT, Short, and to_mtl().
Referenced by to_mtl().
|
inlinestatic |
Definition at line 46 of file mtl_query.mm.
References blender::BLI_assert(), GPU_QUERY_OCCLUSION, and to_mtl_type().
Referenced by blender::gpu::MTLQueryPool::init(), to_mtl_type(), and to_mtl_type().
|
inlinestatic |
A function that maps GPUSamplerExtendMode values to their Metal enum counterparts.
Definition at line 1814 of file mtl_context.mm.
References BLI_assert_unreachable, blender::GPU_SAMPLER_EXTEND_MODE_CLAMP_TO_BORDER, blender::GPU_SAMPLER_EXTEND_MODE_EXTEND, blender::GPU_SAMPLER_EXTEND_MODE_MIRRORED_REPEAT, blender::GPU_SAMPLER_EXTEND_MODE_REPEAT, and to_mtl_type().
Referenced by blender::gpu::MTLContext::sampler_state_cache_init(), and to_mtl_type().
|
inline |
Definition at line 181 of file mtl_shader_interface_type.hh.
References blender::BLI_assert(), blender::gpu::shader::bool_t, blender::gpu::shader::char2_t, blender::gpu::shader::char3_t, blender::gpu::shader::char4_t, blender::gpu::shader::char_t, blender::gpu::shader::float2_t, blender::gpu::shader::float3_10_10_10_2_t, blender::gpu::shader::float3_t, blender::gpu::shader::float3x3_t, blender::gpu::shader::float4_t, blender::gpu::shader::float4x4_t, blender::gpu::shader::float_t, blender::gpu::shader::int2_t, blender::gpu::shader::int3_t, blender::gpu::shader::int4_t, blender::gpu::shader::int_t, MTL_DATATYPE_BOOL, MTL_DATATYPE_CHAR, MTL_DATATYPE_CHAR2, MTL_DATATYPE_CHAR3, MTL_DATATYPE_CHAR4, MTL_DATATYPE_FLOAT, MTL_DATATYPE_FLOAT2, MTL_DATATYPE_FLOAT3, MTL_DATATYPE_FLOAT3x3, MTL_DATATYPE_FLOAT4, MTL_DATATYPE_FLOAT4x4, MTL_DATATYPE_INT, MTL_DATATYPE_INT2, MTL_DATATYPE_INT3, MTL_DATATYPE_INT4, MTL_DATATYPE_SHORT, MTL_DATATYPE_SHORT2, MTL_DATATYPE_SHORT3, MTL_DATATYPE_SHORT4, MTL_DATATYPE_UCHAR, MTL_DATATYPE_UCHAR2, MTL_DATATYPE_UCHAR3, MTL_DATATYPE_UCHAR4, MTL_DATATYPE_UINT, MTL_DATATYPE_UINT1010102_NORM, MTL_DATATYPE_UINT2, MTL_DATATYPE_UINT3, MTL_DATATYPE_UINT4, MTL_DATATYPE_USHORT, MTL_DATATYPE_USHORT2, MTL_DATATYPE_USHORT3, MTL_DATATYPE_USHORT4, blender::gpu::shader::short2_t, blender::gpu::shader::short3_t, blender::gpu::shader::short4_t, blender::gpu::shader::short_t, to_mtl_type(), blender::gpu::shader::uchar2_t, blender::gpu::shader::uchar3_t, blender::gpu::shader::uchar4_t, blender::gpu::shader::uchar_t, blender::gpu::shader::uint2_t, blender::gpu::shader::uint3_t, blender::gpu::shader::uint4_t, blender::gpu::shader::uint_t, blender::gpu::shader::ushort2_t, blender::gpu::shader::ushort3_t, blender::gpu::shader::ushort4_t, and blender::gpu::shader::ushort_t.
|
static |
Definition at line 99 of file mtl_shader_generate.cc.
References BLI_assert_unreachable, blender::gpu::MTLBackend::get_capabilities(), blender::gpu::MTLCapabilities::supports_texture_atomics, and to_raw_type().
Referenced by generate_texture(), and to_raw_type().
|
static |
Definition at line 185 of file vk_shader_compiler.cc.
References BLI_assert_msg, and to_stage_name().
Referenced by compile_ex(), and to_stage_name().
|
static |
Definition at line 197 of file vk_shader.cc.
References blender::gpu::shader::ANY, blender::gpu::shader::GREATER, blender::gpu::shader::LESS, and to_string().
|
static |
Definition at line 446 of file mtl_shader_generate.cc.
References BLI_assert_unreachable, blender::gpu::shader::FLAT, interp(), blender::gpu::shader::NO_PERSPECTIVE, blender::gpu::shader::SMOOTH, and to_string().
|
static |
Definition at line 41 of file vk_shader.cc.
References blender::gpu::shader::FLAT, interp(), blender::gpu::shader::NO_PERSPECTIVE, blender::gpu::shader::SMOOTH, and to_string().
|
static |
Definition at line 165 of file vk_shader.cc.
References blender::gpu::shader::LINES, blender::gpu::shader::LINES_ADJACENCY, blender::gpu::shader::POINTS, to_string(), blender::gpu::shader::TRIANGLES, and blender::gpu::shader::TRIANGLES_ADJACENCY.
|
static |
Definition at line 183 of file vk_shader.cc.
References blender::gpu::shader::LINE_STRIP, blender::gpu::shader::POINTS, to_string(), and blender::gpu::shader::TRIANGLE_STRIP.
|
static |
Definition at line 93 of file vk_shader.cc.
References to_string().
|
static |
Definition at line 55 of file vk_shader.cc.
References blender::gpu::shader::bool_t, blender::gpu::shader::float2_t, blender::gpu::shader::float3_t, blender::gpu::shader::float3x3_t, blender::gpu::shader::float4_t, blender::gpu::shader::float4x4_t, blender::gpu::shader::float_t, blender::gpu::shader::int2_t, blender::gpu::shader::int3_t, blender::gpu::shader::int4_t, blender::gpu::shader::int_t, to_string(), blender::gpu::shader::uint2_t, blender::gpu::shader::uint3_t, blender::gpu::shader::uint4_t, and blender::gpu::shader::uint_t.
| const char * blender::gpu::to_string | ( | const VkAttachmentLoadOp | vk_attachment_load_op | ) |
Definition at line 115 of file vk_to_string.cc.
References STRINGIFY, STRINGIFY_ARG, and to_string().
| const char * blender::gpu::to_string | ( | const VkAttachmentStoreOp | vk_attachment_store_op | ) |
Definition at line 133 of file vk_to_string.cc.
References STRINGIFY, STRINGIFY_ARG, and to_string().
| std::string blender::gpu::to_string | ( | const VkBufferCopy & | vk_buffer_copy, |
| int | indentation_level ) |
Definition at line 645 of file vk_to_string.cc.
References to_string(), and UNUSED_VARS.
| std::string blender::gpu::to_string | ( | const VkBufferImageCopy & | vk_buffer_image_copy, |
| int | indentation_level ) |
Definition at line 656 of file vk_to_string.cc.
References to_string().
| std::string blender::gpu::to_string | ( | const VkBufferMemoryBarrier & | vk_buffer_memory_barrier, |
| int | indentation_level ) |
Definition at line 678 of file vk_to_string.cc.
References to_string(), to_string_vk_access_flags(), and UNUSED_VARS.
| std::string blender::gpu::to_string | ( | const VkClearAttachment & | vk_clear_attachment, |
| int | indentation_level ) |
Definition at line 691 of file vk_to_string.cc.
References to_string(), to_string_vk_image_aspect_flags(), and UNUSED_VARS.
| std::string blender::gpu::to_string | ( | const VkClearDepthStencilValue & | vk_clear_depth_stencil_value, |
| int | indentation_level ) |
Definition at line 701 of file vk_to_string.cc.
References to_string(), and UNUSED_VARS.
| std::string blender::gpu::to_string | ( | const VkClearRect & | vk_clear_rect, |
| int | indentation_level ) |
Definition at line 712 of file vk_to_string.cc.
References to_string().
| std::string blender::gpu::to_string | ( | const VkExtent2D & | vk_extent2_d, |
| int | indentation_level ) |
Definition at line 725 of file vk_to_string.cc.
References to_string(), and UNUSED_VARS.
| std::string blender::gpu::to_string | ( | const VkExtent3D & | vk_extent3_d, |
| int | indentation_level ) |
Definition at line 735 of file vk_to_string.cc.
References to_string(), and UNUSED_VARS.
| const char * blender::gpu::to_string | ( | const VkFilter | vk_filter | ) |
Definition at line 152 of file vk_to_string.cc.
References STRINGIFY, STRINGIFY_ARG, and to_string().
| std::string blender::gpu::to_string | ( | const VkImageBlit & | vk_image_blit, |
| int | indentation_level ) |
Definition at line 746 of file vk_to_string.cc.
References to_string().
| std::string blender::gpu::to_string | ( | const VkImageCopy & | vk_image_copy, |
| int | indentation_level ) |
Definition at line 761 of file vk_to_string.cc.
References to_string().
| const char * blender::gpu::to_string | ( | const VkImageLayout | vk_image_layout | ) |
Definition at line 167 of file vk_to_string.cc.
References STRINGIFY, STRINGIFY_ARG, and to_string().
| std::string blender::gpu::to_string | ( | const VkImageMemoryBarrier & | vk_image_memory_barrier, |
| int | indentation_level ) |
Definition at line 788 of file vk_to_string.cc.
References to_string(), and to_string_vk_access_flags().
| std::string blender::gpu::to_string | ( | const VkImageSubresourceLayers & | vk_image_subresource_layers, |
| int | indentation_level ) |
Definition at line 804 of file vk_to_string.cc.
References to_string(), to_string_vk_image_aspect_flags(), and UNUSED_VARS.
| std::string blender::gpu::to_string | ( | const VkImageSubresourceRange & | vk_image_subresource_range, |
| int | indentation_level ) |
Definition at line 817 of file vk_to_string.cc.
References to_string(), to_string_vk_image_aspect_flags(), and UNUSED_VARS.
| const char * blender::gpu::to_string | ( | const VkIndexType | vk_index_type | ) |
Definition at line 230 of file vk_to_string.cc.
References STRINGIFY, STRINGIFY_ARG, and to_string().
| std::string blender::gpu::to_string | ( | const VkMemoryBarrier & | vk_memory_barrier, |
| int | indentation_level ) |
Definition at line 831 of file vk_to_string.cc.
References to_string(), to_string_vk_access_flags(), and UNUSED_VARS.
| const char * blender::gpu::to_string | ( | const VkObjectType | vk_object_type | ) |
Definition at line 245 of file vk_to_string.cc.
References STRINGIFY, STRINGIFY_ARG, and to_string().
| std::string blender::gpu::to_string | ( | const VkOffset2D & | vk_offset2_d, |
| int | indentation_level ) |
Definition at line 841 of file vk_to_string.cc.
References to_string(), and UNUSED_VARS.
| std::string blender::gpu::to_string | ( | const VkOffset3D & | vk_offset3_d, |
| int | indentation_level ) |
Definition at line 851 of file vk_to_string.cc.
References to_string(), and UNUSED_VARS.
| const char * blender::gpu::to_string | ( | const VkPipelineBindPoint | vk_pipeline_bind_point | ) |
Definition at line 343 of file vk_to_string.cc.
References STRINGIFY, STRINGIFY_ARG, and to_string().
| std::string blender::gpu::to_string | ( | const VkRect2D & | vk_rect2_d, |
| int | indentation_level ) |
Definition at line 862 of file vk_to_string.cc.
References to_string().
| std::string blender::gpu::to_string | ( | const VkRenderingAttachmentInfo & | vk_rendering_attachment_info, |
| int | indentation_level ) |
Definition at line 893 of file vk_to_string.cc.
References to_string(), and UNUSED_VARS.
| std::string blender::gpu::to_string | ( | const VkRenderingInfo & | vk_rendering_info, |
| int | indentation_level ) |
Definition at line 909 of file vk_to_string.cc.
References to_string(), and to_string_vk_rendering_flags().
| std::string blender::gpu::to_string | ( | const VkRenderPassBeginInfo & | vk_render_pass_begin_info, |
| int | indentation_level ) |
Definition at line 877 of file vk_to_string.cc.
References to_string().
| const char * blender::gpu::to_string | ( | const VkResolveModeFlagBits | vk_resolve_mode_flag_bits | ) |
Definition at line 358 of file vk_to_string.cc.
References STRINGIFY, STRINGIFY_ARG, and to_string().
| const char * blender::gpu::to_string | ( | const VkSubpassContents | vk_subpass_contents | ) |
Definition at line 382 of file vk_to_string.cc.
References STRINGIFY, STRINGIFY_ARG, and to_string().
|
static |
Definition at line 431 of file mtl_shader_generate.cc.
References BLI_assert_unreachable, blender::gpu::shader::bool_t, blender::gpu::shader::int_t, to_string(), and blender::gpu::shader::uint_t.
| const char * blender::gpu::to_string | ( | ShaderStage | stage | ) |
Definition at line 52 of file mtl_shader.mm.
References ANY, COMPUTE, FRAGMENT, to_string(), and VERTEX.
Referenced by blender::gpu::render_graph::CommandBufferLog::begin_rendering(), blender::gpu::render_graph::CommandBufferLog::bind_descriptor_sets(), blender::gpu::render_graph::CommandBufferLog::bind_pipeline(), blender::gpu::render_graph::CommandBufferLog::blit_image(), blender::gpu::render_graph::CommandBufferLog::clear_attachments(), blender::gpu::render_graph::CommandBufferLog::clear_color_image(), blender::gpu::render_graph::CommandBufferLog::copy_buffer(), blender::gpu::render_graph::CommandBufferLog::copy_buffer_to_image(), blender::gpu::render_graph::CommandBufferLog::copy_image(), blender::gpu::render_graph::CommandBufferLog::copy_image_to_buffer(), GHOST_InstanceVK::create_device(), blender::gpu::render_graph::CommandBufferLog::dispatch_indirect(), blender::ui::draw_horizontal_scale_indicators(), blender::ui::draw_vertical_scale_indicators(), blender::ed::spreadsheet::estimate_max_column_width(), blender::gpu::render_graph::CommandBufferLog::fill_buffer(), blender::gpu::GLShader::fragment_interface_declare(), blender::gpu::VKShader::fragment_interface_declare(), generate_compilation_constant(), generate_inout(), blender::gpu::GLShader::geometry_layout_declare(), blender::gpu::VKShader::geometry_layout_declare(), blender::ui::get_label_width(), blender::ui::get_min_line_distance_x(), blender::MANTA::getFrame(), blender::MANTA::getTimestep(), blender::gpu::shader::SourceProcessor::guarded_scope_mutation(), blender::fixed_width_int::UIntF< uint8_t, 8 >::operator float(), blender::fixed_width_int::IntF< uint16_t, 4 >::operator UIntF< uint16_t, S >(), blender::gpu::render_graph::CommandBufferLog::pipeline_barrier(), blender::print_interface(), print_interface_as_attributes(), print_interface_as_struct(), blender::gpu::debug::VKDebuggingTools::print_labels(), print_resource(), blender::print_resource(), blender::gpu::GLShader::resources_declare(), blender::gpu::VKShader::resources_declare(), GHOST_ContextVK::swapBufferRelease(), to_string(), to_string(), to_string(), to_string(), to_string(), to_string(), to_string(), to_string(), to_string(), to_string(), to_string(), to_string(), to_string(), to_string(), to_string(), to_string(), to_string(), to_string(), to_string(), to_string(), to_string(), to_string(), to_string(), to_string(), to_string(), to_string(), to_string(), to_string(), to_string(), to_string(), to_string(), to_string(), to_string(), to_string(), to_string(), to_string(), to_string(), to_string(), to_string(), blender::to_string(), blender::to_string(), blender::to_string(), blender::to_string(), blender::to_string(), blender::to_string(), blender::gpu::render_graph::CommandBufferLog::update_buffer(), blender::MANTA::updatePointers(), blender::gpu::GLShader::vertex_interface_declare(), blender::gpu::VKShader::vertex_interface_declare(), and blender::gpu::VKDevice::wait_for_timeline().
| std::string blender::gpu::to_string | ( | VkBuffer | vk_handle | ) |
Definition at line 73 of file vk_to_string.cc.
References to_string(), and to_string_handle().
| const char * blender::gpu::to_string | ( | VkResult | result | ) |
Definition at line 23 of file vk_to_string.cc.
References FORMAT_ERROR, blender::result, and to_string().
|
static |
Portable printing of vulkan handles across platforms.
Definition at line 16 of file vk_to_string.cc.
References to_string_handle().
Referenced by to_string(), and to_string_handle().
| std::string blender::gpu::to_string_vk_access_flags | ( | const VkAccessFlags | vk_access_flags | ) |
Definition at line 397 of file vk_to_string.cc.
References blender::result, STRINGIFY, and to_string_vk_access_flags().
Referenced by to_string(), to_string(), to_string(), and to_string_vk_access_flags().
| std::string blender::gpu::to_string_vk_dependency_flags | ( | const VkDependencyFlags | vk_dependency_flags | ) |
Definition at line 460 of file vk_to_string.cc.
References blender::result, STRINGIFY, and to_string_vk_dependency_flags().
Referenced by to_string_vk_dependency_flags().
| std::string blender::gpu::to_string_vk_image_aspect_flags | ( | const VkImageAspectFlags | vk_image_aspect_flags | ) |
Definition at line 482 of file vk_to_string.cc.
References blender::result, STRINGIFY, and to_string_vk_image_aspect_flags().
Referenced by to_string(), to_string(), to_string(), and to_string_vk_image_aspect_flags().
| std::string blender::gpu::to_string_vk_pipeline_stage_flags | ( | const VkPipelineStageFlags | vk_pipeline_stage_flags | ) |
Definition at line 516 of file vk_to_string.cc.
References blender::result, STRINGIFY, and to_string_vk_pipeline_stage_flags().
Referenced by blender::gpu::render_graph::CommandBufferLog::pipeline_barrier(), and to_string_vk_pipeline_stage_flags().
| std::string blender::gpu::to_string_vk_rendering_flags | ( | const VkRenderingFlags | vk_rendering_flags | ) |
Definition at line 579 of file vk_to_string.cc.
References blender::result, STRINGIFY, and to_string_vk_rendering_flags().
Referenced by to_string(), and to_string_vk_rendering_flags().
| std::string blender::gpu::to_string_vk_shader_stage_flags | ( | const VkShaderStageFlags | vk_shader_stage_flags | ) |
Definition at line 609 of file vk_to_string.cc.
References blender::result, STRINGIFY, and to_string_vk_shader_stage_flags().
Referenced by to_string_vk_shader_stage_flags().
|
inline |
Definition at line 715 of file gpu_texture_private.hh.
References BLI_assert_unreachable, blender::GPU_DATA_10_11_11_REV, blender::GPU_DATA_2_10_10_10_REV, blender::GPU_DATA_FLOAT, blender::GPU_DATA_INT, blender::GPU_DATA_UINT, blender::GPU_DATA_UINT_24_8_DEPRECATED, Invalid, and to_texture_data_format().
Referenced by blender::gpu::VKTexture::clear(), blender::GPU_texture_create_compressed_2d(), blender::gpu::VKFrameBuffer::rendering_ensure_dynamic_rendering(), blender::gpu::tests::texture_view_create_format_test(), and to_texture_data_format().
|
inlinestatic |
Definition at line 910 of file gpu_texture_private.hh.
References BLI_assert_msg, and to_texture_format().
|
constexpr |
Definition at line 203 of file GPU_texture.hh.
References to_texture_format().
Referenced by blender::gpu::shader::PipelineState::color_format(), debug_validate_binding_image_format(), blender::gpu::shader::PipelineState::depth_format(), blender::GPU_texture_create_from_vertbuf(), blender::gpu::shader::PipelineState::stencil_format(), to_texture_format(), to_texture_format(), to_texture_format(), to_vk_format(), and blender::gpu::VKVertexBuffer::to_vk_format().
|
constexpr |
Definition at line 268 of file GPU_texture.hh.
References to_texture_format().
|
static |
Definition at line 284 of file vk_framebuffer.cc.
References BLI_assert_unreachable, blender::GPU_LOADACTION_CLEAR, blender::GPU_LOADACTION_DONT_CARE, blender::GPU_LOADACTION_LOAD, and to_vk_attachment_load_op().
Referenced by set_load_store(), and to_vk_attachment_load_op().
|
static |
Definition at line 298 of file vk_framebuffer.cc.
References BLI_assert_unreachable, blender::GPU_STOREACTION_DONT_CARE, blender::GPU_STOREACTION_STORE, and to_vk_attachment_store_op().
Referenced by set_load_store(), and to_vk_attachment_store_op().
| VkClearColorValue blender::gpu::to_vk_clear_color_value | ( | const eGPUDataFormat | format, |
| const double4 | data ) |
Definition at line 611 of file vk_common.cc.
References BLI_assert_unreachable, blender::data, float, blender::GPU_DATA_10_11_11_REV, blender::GPU_DATA_2_10_10_10_REV, blender::GPU_DATA_FLOAT, blender::GPU_DATA_HALF_FLOAT, blender::GPU_DATA_INT, blender::GPU_DATA_UBYTE, blender::GPU_DATA_UINT, blender::GPU_DATA_UINT_24_8_DEPRECATED, blender::result, and to_vk_clear_color_value().
Referenced by blender::gpu::VKTexture::clear(), set_load_store(), and to_vk_clear_color_value().
| VkComponentSwizzle blender::gpu::to_vk_component_swizzle | ( | const char | swizzle | ) |
Definition at line 588 of file vk_common.cc.
References BLI_assert_unreachable, and to_vk_component_swizzle().
Referenced by to_vk_component_swizzle(), and blender::gpu::VKImageView::VKImageView().
| VkCullModeFlags blender::gpu::to_vk_cull_mode_flags | ( | const GPUFaceCullTest | cull_test | ) |
Definition at line 698 of file vk_common.cc.
References BLI_assert_unreachable, blender::GPU_CULL_BACK, blender::GPU_CULL_FRONT, blender::GPU_CULL_NONE, and to_vk_cull_mode_flags().
Referenced by to_vk_cull_mode_flags().
| VkDescriptorType blender::gpu::to_vk_descriptor_type | ( | const shader::ShaderCreateInfo::Resource & | resource | ) |
Definition at line 823 of file vk_common.cc.
References blender::gpu::shader::ShaderCreateInfo::Resource::ACCELERATION_STRUCTURE, blender::gpu::shader::ShaderCreateInfo::Resource::bind_type, BLI_assert_unreachable, blender::gpu::shader::ShaderCreateInfo::Resource::IMAGE, blender::gpu::shader::ShaderCreateInfo::Resource::SAMPLER, blender::gpu::shader::ShaderCreateInfo::Resource::STORAGE_BUFFER, to_vk_descriptor_type(), to_vk_descriptor_type_image(), to_vk_descriptor_type_sampler(), and blender::gpu::shader::ShaderCreateInfo::Resource::UNIFORM_BUFFER.
Referenced by to_vk_descriptor_type().
|
static |
Definition at line 729 of file vk_common.cc.
References BLI_assert_msg, and to_vk_descriptor_type_image().
Referenced by to_vk_descriptor_type(), and to_vk_descriptor_type_image().
|
static |
Definition at line 773 of file vk_common.cc.
References to_vk_descriptor_type_sampler(), and blender::gpu::shader::undefined.
Referenced by to_vk_descriptor_type(), and to_vk_descriptor_type_sampler().
| VkFormat blender::gpu::to_vk_format | ( | const GPUVertCompType | type, |
| const uint32_t | size, | ||
| GPUVertFetchMode | fetch_mode ) |
Definition at line 411 of file vk_common.cc.
References BLI_assert_unreachable, blender::GPU_FETCH_FLOAT, blender::GPU_FETCH_INT, blender::GPU_FETCH_INT_TO_FLOAT_UNIT, to_vk_format(), to_vk_format_float(), to_vk_format_int(), and to_vk_format_norm().
| VkFormat blender::gpu::to_vk_format | ( | const shader::Type | type | ) |
Definition at line 430 of file vk_common.cc.
References BLI_assert_unreachable, blender::gpu::shader::bool_t, blender::gpu::shader::char2_t, blender::gpu::shader::char3_t, blender::gpu::shader::char4_t, blender::gpu::shader::char_t, blender::gpu::shader::float2_t, blender::gpu::shader::float3_10_10_10_2_t, blender::gpu::shader::float3_t, blender::gpu::shader::float3x3_t, blender::gpu::shader::float4_t, blender::gpu::shader::float4x4_t, blender::gpu::shader::float_t, blender::gpu::shader::int2_t, blender::gpu::shader::int3_t, blender::gpu::shader::int4_t, blender::gpu::shader::int_t, blender::gpu::shader::short2_t, blender::gpu::shader::short3_t, blender::gpu::shader::short4_t, blender::gpu::shader::short_t, to_vk_format(), blender::gpu::shader::uchar2_t, blender::gpu::shader::uchar3_t, blender::gpu::shader::uchar4_t, blender::gpu::shader::uchar_t, blender::gpu::shader::uint2_t, blender::gpu::shader::uint3_t, blender::gpu::shader::uint4_t, blender::gpu::shader::uint_t, blender::gpu::shader::ushort2_t, blender::gpu::shader::ushort3_t, blender::gpu::shader::ushort4_t, and blender::gpu::shader::ushort_t.
| VkFormat blender::gpu::to_vk_format | ( | const TextureFormat | format | ) |
Definition at line 157 of file vk_common.cc.
References CASE, GPU_TEXTURE_FORMAT_EXPAND, Invalid, and to_vk_format().
Referenced by blender::gpu::VKTexturePool::acquire_texture_impl(), blender::gpu::VKShader::ensure_graphics_pipelines(), blender::gpu::VKTexture::image_view_get(), blender::gpu::VKTexture::init_internal(), blender::gpu::VKFrameBuffer::rendering_ensure_dynamic_rendering(), to_vk_format(), to_vk_format(), to_vk_format(), to_vk_format(), blender::gpu::VKVertexBuffer::to_vk_format(), and blender::gpu::VKImageView::VKImageView().
| BLI_INLINE VkFormat blender::gpu::to_vk_format | ( | const TextureTargetFormat | format | ) |
Definition at line 95 of file vk_common.hh.
References BLI_INLINE, to_texture_format(), and to_vk_format().
|
static |
Definition at line 257 of file vk_common.cc.
References BLI_assert_unreachable, blender::GPU_COMP_F32, and to_vk_format_float().
Referenced by to_vk_format(), and to_vk_format_float().
|
static |
Definition at line 284 of file vk_common.cc.
References blender::BLI_assert(), BLI_assert_unreachable, blender::GPU_COMP_F32, blender::GPU_COMP_I10, blender::GPU_COMP_I16, blender::GPU_COMP_I32, blender::GPU_COMP_I8, blender::GPU_COMP_U16, blender::GPU_COMP_U32, blender::GPU_COMP_U8, and to_vk_format_int().
Referenced by to_vk_format(), and to_vk_format_int().
|
static |
Definition at line 172 of file vk_common.cc.
References blender::BLI_assert(), BLI_assert_unreachable, blender::GPU_COMP_F32, blender::GPU_COMP_I10, blender::GPU_COMP_I16, blender::GPU_COMP_I32, blender::GPU_COMP_I8, blender::GPU_COMP_U16, blender::GPU_COMP_U32, blender::GPU_COMP_U8, to_vk_format_norm(), VK_FORMAT_R8G8B8_UNORM, and VK_FORMAT_R8G8B8A8_UNORM.
Referenced by to_vk_format(), and to_vk_format_norm().
| VkImageAspectFlags blender::gpu::to_vk_image_aspect_flag_bits | ( | const GPUFrameBufferBits | buffers | ) |
Definition at line 107 of file vk_common.cc.
References blender::GPU_COLOR_BIT, blender::GPU_DEPTH_BIT, blender::GPU_STENCIL_BIT, blender::result, and to_vk_image_aspect_flag_bits().
| VkImageAspectFlags blender::gpu::to_vk_image_aspect_flag_bits | ( | const TextureFormat | format | ) |
Definition at line 16 of file vk_common.cc.
References BLI_assert_unreachable, Invalid, and to_vk_image_aspect_flag_bits().
Referenced by blender::gpu::VKTexture::clear(), blender::gpu::VKTexture::clear_depth_stencil(), blender::gpu::VKTexture::copy_to(), blender::gpu::VKTexture::generate_mipmap(), blender::gpu::VKTexture::image_view_get(), blender::gpu::VKTexture::read_sub(), blender::gpu::VKTexturePool::release_texture(), blender::gpu::VKFrameBuffer::rendering_ensure_dynamic_rendering(), to_vk_image_aspect_flag_bits(), to_vk_image_aspect_flag_bits(), and blender::gpu::VKTexture::update_sub().
|
static |
Definition at line 32 of file vk_texture.cc.
References to_vk_image_aspect_single_bit().
Referenced by blender::gpu::VKTexture::read_sub(), to_vk_image_aspect_single_bit(), and blender::gpu::VKTexture::update_sub().
| VkImageCreateFlags blender::gpu::to_vk_image_create | ( | const GPUTextureType | texture_type, |
| const GPUTextureFormatFlag | format_flag, | ||
| eGPUTextureUsage | usage ) |
Definition at line 864 of file vk_common.cc.
References ELEM, GPU_FORMAT_SRGB, GPU_TEXTURE_CUBE, GPU_TEXTURE_CUBE_ARRAY, blender::GPU_TEXTURE_USAGE_ATTACHMENT, blender::GPU_TEXTURE_USAGE_FORMAT_VIEW, blender::result, to_vk_image_create(), and vk_need_extended_usage_for_storage_image().
Referenced by blender::gpu::VKTexturePool::acquire_texture_impl(), blender::gpu::VKTexture::init_internal(), and to_vk_image_create().
| VkImageType blender::gpu::to_vk_image_type | ( | const GPUTextureType | type | ) |
Definition at line 496 of file vk_common.cc.
References BLI_assert_unreachable, GPU_TEXTURE_1D, GPU_TEXTURE_1D_ARRAY, GPU_TEXTURE_2D, GPU_TEXTURE_2D_ARRAY, GPU_TEXTURE_3D, GPU_TEXTURE_ARRAY, GPU_TEXTURE_BUFFER, GPU_TEXTURE_CUBE, GPU_TEXTURE_CUBE_ARRAY, and to_vk_image_type().
Referenced by blender::gpu::VKTexturePool::acquire_texture_impl(), blender::gpu::VKTexture::init_internal(), blender::gpu::VKTexture::read(), and to_vk_image_type().
| VkImageUsageFlags blender::gpu::to_vk_image_usage | ( | const eGPUTextureUsage | usage, |
| const GPUTextureFormatFlag | format_flag, | ||
| bool | use_image_host_copy ) |
Definition at line 893 of file vk_common.cc.
References blender::gpu::VKBackend::device, blender::gpu::VKExtensions::dynamic_rendering_local_read, blender::gpu::VKDevice::extensions_get(), blender::gpu::VKBackend::get(), GPU_FORMAT_COMPRESSED, GPU_FORMAT_DEPTH, GPU_FORMAT_SRGB, GPU_FORMAT_STENCIL, blender::GPU_TEXTURE_USAGE_ATTACHMENT, blender::GPU_TEXTURE_USAGE_HOST_READ, blender::GPU_TEXTURE_USAGE_SHADER_READ, blender::GPU_TEXTURE_USAGE_SHADER_WRITE, blender::result, to_vk_image_usage(), and vk_need_extended_usage_for_storage_image().
Referenced by blender::gpu::VKTexturePool::acquire_texture_impl(), blender::gpu::VKTexture::init_internal(), and to_vk_image_usage().
| VkImageViewType blender::gpu::to_vk_image_view_type | ( | const GPUTextureType | type, |
| const eImageViewUsage | view_type, | ||
| VKImageViewArrayed | arrayed ) |
Definition at line 525 of file vk_common.cc.
References ARRAYED, Attachment, GPU_TEXTURE_1D, GPU_TEXTURE_1D_ARRAY, GPU_TEXTURE_2D, GPU_TEXTURE_2D_ARRAY, GPU_TEXTURE_3D, GPU_TEXTURE_ARRAY, GPU_TEXTURE_BUFFER, GPU_TEXTURE_CUBE, GPU_TEXTURE_CUBE_ARRAY, NOT_ARRAYED, blender::result, and to_vk_image_view_type().
Referenced by to_vk_image_view_type(), and blender::gpu::VKImageView::VKImageView().
| VkIndexType blender::gpu::to_vk_index_type | ( | const GPUIndexBufType | index_type | ) |
Definition at line 652 of file vk_common.cc.
References BLI_assert_unreachable, GPU_INDEX_U16, GPU_INDEX_U32, and to_vk_index_type().
Referenced by to_vk_index_type(), and blender::gpu::VKIndexBuffer::vk_index_type().
Definition at line 134 of file vk_common.hh.
References BLI_assert_unreachable, IMAGE, SAMPLER, T, to_vk_object_type(), and VK_EQ_TYPEID.
Referenced by blender::gpu::debug::object_label(), and to_vk_object_type().
| VkPrimitiveTopology blender::gpu::to_vk_primitive_topology | ( | const GPUPrimType | prim_type | ) |
Definition at line 666 of file vk_common.cc.
References BLI_assert_unreachable, blender::GPU_PRIM_LINE_LOOP, blender::GPU_PRIM_LINE_STRIP, blender::GPU_PRIM_LINE_STRIP_ADJ, blender::GPU_PRIM_LINES, blender::GPU_PRIM_LINES_ADJ, blender::GPU_PRIM_NONE, blender::GPU_PRIM_POINTS, blender::GPU_PRIM_TRI_FAN, blender::GPU_PRIM_TRI_STRIP, blender::GPU_PRIM_TRIS, blender::GPU_PRIM_TRIS_ADJ, and to_vk_primitive_topology().
Referenced by blender::gpu::VKShader::ensure_and_get_graphics_pipeline(), blender::gpu::VKShader::ensure_graphics_pipelines(), and to_vk_primitive_topology().
| VkQueryType blender::gpu::to_vk_query_type | ( | const GPUQueryType | query_type | ) |
Definition at line 486 of file vk_common.cc.
References BLI_assert_unreachable, GPU_QUERY_OCCLUSION, and to_vk_query_type().
Referenced by blender::gpu::VKQueryPool::init(), and to_vk_query_type().
| VkSamplerAddressMode blender::gpu::to_vk_sampler_address_mode | ( | const GPUSamplerExtendMode | extend_mode | ) |
Definition at line 712 of file vk_common.cc.
References BLI_assert_unreachable, blender::GPU_SAMPLER_EXTEND_MODE_CLAMP_TO_BORDER, blender::GPU_SAMPLER_EXTEND_MODE_EXTEND, blender::GPU_SAMPLER_EXTEND_MODE_MIRRORED_REPEAT, blender::GPU_SAMPLER_EXTEND_MODE_REPEAT, and to_vk_sampler_address_mode().
Referenced by blender::gpu::VKSampler::create(), and to_vk_sampler_address_mode().
|
static |
Definition at line 1041 of file gpu_shader.cc.
References BLI_assert_unreachable, blender::BLI_THREAD_QUEUE_WORK_PRIORITY_HIGH, blender::BLI_THREAD_QUEUE_WORK_PRIORITY_LOW, blender::BLI_THREAD_QUEUE_WORK_PRIORITY_NORMAL, blender::High, blender::Low, blender::Medium, and to_work_priority().
Referenced by blender::gpu::ShaderCompiler::async_compilation(), blender::gpu::ShaderCompiler::async_specialization(), and to_work_priority().
| StringRefNull blender::gpu::to_wrapper_type | ( | ImageType | type | ) |
Definition at line 188 of file mtl_shader_generate.cc.
References BLI_assert_unreachable, blender::gpu::MTLBackend::get_capabilities(), blender::gpu::MTLCapabilities::supports_texture_atomics, and to_wrapper_type().
Referenced by generate_texture(), and to_wrapper_type().
|
static |
Definition at line 82 of file vk_data_conversion.cc.
References BLI_assert_unreachable, FLOAT3_TO_FLOAT4, FLOAT3_TO_HALF4, FLOAT_TO_B10F_G11F_R11F, FLOAT_TO_HALF, FLOAT_TO_SNORM16, FLOAT_TO_SNORM8, FLOAT_TO_UNORM16, FLOAT_TO_UNORM8, Invalid, PASS_THROUGH, PASS_THROUGH_D32F_S8, type_of_conversion_float(), and UNSUPPORTED.
Referenced by host_to_device(), and type_of_conversion_float().
|
static |
Definition at line 359 of file vk_data_conversion.cc.
References BLI_assert_unreachable, Invalid, PASS_THROUGH, type_of_conversion_half(), and UNSUPPORTED.
Referenced by host_to_device(), and type_of_conversion_half().
|
static |
Definition at line 195 of file vk_data_conversion.cc.
References BLI_assert_unreachable, I32_TO_I16, I32_TO_I8, Invalid, PASS_THROUGH, type_of_conversion_int(), and UNSUPPORTED.
Referenced by host_to_device(), and type_of_conversion_int().
|
static |
Definition at line 603 of file vk_data_conversion.cc.
References ELEM, PASS_THROUGH, type_of_conversion_r10g10b10a2(), and UNSUPPORTED.
Referenced by host_to_device(), and type_of_conversion_r10g10b10a2().
|
static |
Definition at line 595 of file vk_data_conversion.cc.
References PASS_THROUGH, type_of_conversion_r11g11b10(), and UNSUPPORTED.
Referenced by host_to_device(), and type_of_conversion_r11g11b10().
|
static |
Definition at line 436 of file vk_data_conversion.cc.
References BLI_assert_unreachable, Invalid, PASS_THROUGH, type_of_conversion_ubyte(), UI8_TO_HALF, and UNSUPPORTED.
Referenced by host_to_device(), and type_of_conversion_ubyte().
|
static |
Definition at line 276 of file vk_data_conversion.cc.
References BLI_assert_unreachable, Invalid, PASS_THROUGH, type_of_conversion_uint(), UI32_TO_UI16, UI32_TO_UI8, UNORM32_TO_FLOAT, and UNSUPPORTED.
Referenced by host_to_device(), and type_of_conversion_uint().
|
static |
Definition at line 515 of file vk_data_conversion.cc.
References BLI_assert_unreachable, Invalid, type_of_conversion_uint248(), UINT_TO_DEPTH32F_STENCIL8, and UNSUPPORTED.
Referenced by host_to_device(), and type_of_conversion_uint248().
Definition at line 695 of file vk_data_conversion.cc.
References uint32_t_to_float().
Referenced by convert(), and uint32_t_to_float().
|
inline |
Definition at line 50 of file vk_batch.hh.
References unwrap().
|
inlinestatic |
Definition at line 106 of file vk_ray_tracing.hh.
References unwrap().
|
inlinestatic |
Definition at line 175 of file gpu_context_private.hh.
References unwrap().
|
inlinestatic |
Definition at line 185 of file gpu_state_private.hh.
References unwrap().
|
inlinestatic |
Definition at line 390 of file gpu_texture_private.hh.
References unwrap().
|
inlinestatic |
Definition at line 102 of file vk_ray_tracing.hh.
References unwrap().
|
inlinestatic |
Definition at line 148 of file vk_framebuffer.hh.
References unwrap().
|
inlinestatic |
|
inlinestatic |
Definition at line 181 of file gpu_state_private.hh.
References unwrap().
|
inlinestatic |
Definition at line 386 of file gpu_texture_private.hh.
References unwrap().
|
inlinestatic |
Definition at line 75 of file vk_index_buffer.hh.
References unwrap().
|
inlinestatic |
Definition at line 70 of file vk_index_buffer.hh.
References unwrap().
|
inlinestatic |
Definition at line 38 of file vk_pixel_buffer.hh.
References unwrap().
Definition at line 158 of file vk_shader.hh.
References unwrap().
Definition at line 163 of file vk_shader.hh.
References unwrap().
| BLI_INLINE VKStorageBuffer * blender::gpu::unwrap | ( | StorageBuf * | storage_buffer | ) |
Definition at line 71 of file vk_storage_buffer.hh.
References BLI_INLINE, and unwrap().
| BLI_INLINE VKTexture * blender::gpu::unwrap | ( | Texture * | tex | ) |
Definition at line 692 of file mtl_texture.hh.
References BLI_INLINE, and unwrap().
Referenced by blender::gpu::GLTexturePool::acquire_texture_impl(), blender::gpu::MTLTexturePool::acquire_texture_impl(), blender::gpu::VKContext::active_framebuffer_get(), blender::gpu::VKBottomLevelAS::add_geometry(), blender::gpu::VKFrameBuffer::blit_to(), blender::gpu::VKTopLevelAS::build(), blender::gpu::VKFrameBuffer::clear(), blender::gpu::VKBackend::compute_dispatch_indirect(), blender::gpu::VKStorageBuffer::copy_sub(), blender::gpu::VKVertexBuffer::copy_sub(), blender::gpu::VKTexture::copy_to(), blender::gpu::TexturePool::get(), blender::GPU_context_active_set(), blender::GPU_context_begin_frame(), blender::GPU_context_debug_pipeline_creation(), blender::GPU_context_discard(), blender::GPU_context_end_frame(), blender::GPU_fence_free(), blender::GPU_fence_signal(), blender::GPU_fence_wait(), blender::GPU_pixel_buffer_free(), blender::GPU_pixel_buffer_get_native_handle(), blender::GPU_pixel_buffer_map(), blender::GPU_pixel_buffer_size(), blender::GPU_pixel_buffer_unmap(), blender::gpu::VKStateManager::image_bind(), blender::gpu::VKStateManager::image_unbind(), blender::gpu::VKBatch::index_buffer_get(), blender::gpu::VKTexture::init_internal(), blender::gpu::VKTexture::init_internal(), blender::gpu::VKBatch::multi_draw_indirect(), blender::gpu::GLTexturePool::offset_users_count(), blender::gpu::MTLTexturePool::offset_users_count(), blender::gpu::VKTexturePool::offset_users_count(), blender::gpu::VKFrameBuffer::read(), blender::gpu::GLTexturePool::release_texture(), blender::gpu::MTLTexturePool::release_texture(), blender::gpu::VKTexturePool::release_texture(), blender::gpu::VKFrameBuffer::rendering_ensure_dynamic_rendering(), blender::gpu::VKFrameBuffer::subpass_transition_impl(), blender::gpu::VKVertexAttributeObject::update_bindings(), blender::gpu::VKVertexAttributeObject::update_bindings(), blender::gpu::VKDescriptorSetTracker::update_descriptor_set(), blender::gpu::VKContext::update_pipeline_data(), blender::gpu::VKContext::update_pipeline_data(), blender::gpu::VKFrameBuffer::update_srgb(), blender::gpu::MTLTexture::update_sub(), blender::gpu::VKTexture::update_sub(), and blender::gpu::VKBatch::vertex_buffer_get().
| BLI_INLINE VKVertexBuffer & blender::gpu::unwrap | ( | VertBuf & | vertex_buffer | ) |
Definition at line 93 of file vk_vertex_buffer.hh.
References BLI_INLINE, and unwrap().
| BLI_INLINE VKVertexBuffer * blender::gpu::unwrap | ( | VertBuf * | vertex_buffer | ) |
Definition at line 89 of file vk_vertex_buffer.hh.
References BLI_INLINE, and unwrap().
|
static |
Definition at line 225 of file gpu_texture_mipmap.cc.
References blender::gpu::Texture::copy_to(), blender::IndexRange::from_begin_end(), blender::IndexRange::from_single(), blender::gpu::Context::get(), blender::GPU_shader_bind(), GPU_TEXTURE_ARRAY, blender::GPU_texture_create_2d(), blender::GPU_texture_create_2d_array(), blender::GPU_texture_free(), blender::GPU_TEXTURE_USAGE_FORMAT_VIEW, blender::GPU_TEXTURE_USAGE_SHADER_READ, blender::GPU_TEXTURE_USAGE_SHADER_WRITE, blender::IndexRange::IndexRange(), blender::bits::BitSpan::is_empty(), texture(), update_mipmaps(), and update_mipmaps_layers().
Referenced by blender::texture_update_mipmap_chain(), and update_mipmaps().
|
static |
Definition at line 93 of file gpu_texture_mipmap.cc.
References blender::BLI_assert(), lexit::Vector< T >::data(), blender::divide_ceil_u(), blender::bits::foreach_1_index(), blender::GPU_BARRIER_SHADER_IMAGE_ACCESS, blender::GPU_BARRIER_TEXTURE_FETCH, blender::GPU_compute_dispatch(), blender::GPU_max_work_group_count(), blender::GPU_memory_barrier(), blender::GPU_shader_get_ssbo_binding(), blender::GPU_shader_uniform_1i(), blender::GPU_storagebuf_bind(), blender::GPU_storagebuf_create_ex(), blender::GPU_storagebuf_free(), blender::GPU_storagebuf_unbind(), blender::GPU_texture_create_view(), blender::GPU_texture_free(), blender::GPU_texture_image_bind(), blender::GPU_TEXTURE_MIPMAP_UPDATE_CHUNK_SIZE, blender::GPU_USAGE_DYNAMIC, blender::IndexRange::IndexRange(), blender::bits::BitSpan::is_empty(), layer, blender::max_ii(), blender::min_ii(), blender::min_uu(), blender::bits::BitSpan::size(), lexit::Vector< T >::size(), texture(), and update_mipmaps_layers().
Referenced by update_mipmaps(), and update_mipmaps_layers().
|
constexpr |
Definition at line 596 of file gpu_texture_private.hh.
References BLI_assert_unreachable, ELEM, blender::GPU_DATA_10_11_11_REV, blender::GPU_DATA_2_10_10_10_REV, blender::GPU_DATA_FLOAT, blender::GPU_DATA_HALF_FLOAT, blender::GPU_DATA_INT, blender::GPU_DATA_UBYTE, blender::GPU_DATA_UINT, blender::GPU_DATA_UINT_24_8_DEPRECATED, Invalid, and validate_data_format().
Referenced by blender::GPU_texture_clear(), blender::gpu::GLTexture::read(), blender::gpu::MTLTexture::read(), blender::gpu::Texture::read_size_get(), blender::gpu::tests::texture_create_upload_read(), blender::gpu::tests::texture_create_upload_read_pixel(), blender::gpu::tests::texture_create_upload_read_with_bias(), blender::gpu::GLTexture::update_sub(), blender::gpu::GLTexture::update_sub(), blender::gpu::MTLTexture::update_sub(), and validate_data_format().
|
static |
Returns enabled vertex pointers as a bit-flag (one bit per attribute).
Definition at line 27 of file gl_vertex_array.cc.
References blender::gpu::ShaderInterface::attr_get(), blender::GPUVertAttr::Type::comp_len(), blender::GPUVertAttr::Type::comp_type(), blender::GPUVertAttr::Type::fetch_mode(), blender::GPU_FETCH_FLOAT, blender::GPU_FETCH_INT, blender::GPU_FETCH_INT_TO_FLOAT_UNIT, blender::GPU_vertformat_attr_name_get(), blender::gpu::ShaderInput::location, blender::GPUVertAttr::name_len, blender::GPUVertAttr::offset, blender::GPUVertAttr::Type::size(), to_gl(), blender::GPUVertAttr::type, and vbo_bind().
Referenced by blender::gpu::GLVertArray::update_bindings(), blender::gpu::GLVertArray::update_bindings(), and vbo_bind().
|
static |
Definition at line 38 of file gpu_vertex_format.cc.
References blender::GPU_COMP_F32, blender::GPU_COMP_I10, blender::GPU_COMP_I16, blender::GPU_COMP_I32, blender::GPU_COMP_I8, blender::GPU_COMP_MAX, blender::GPU_COMP_U16, blender::GPU_COMP_U32, blender::GPU_COMP_U8, blender::GPU_FETCH_FLOAT, blender::GPU_FETCH_INT, blender::GPU_FETCH_INT_TO_FLOAT_UNIT, Invalid, and vertex_format_combine().
Referenced by blender::GPU_vertformat_attr_add_legacy(), and vertex_format_combine().
| VkFormat blender::gpu::vk_extended_usage_storage_image_format | ( | const VkFormat | format | ) |
Other format to use for binding a storage image when the format itself is not supported.
Definition at line 850 of file vk_common.cc.
References vk_extended_usage_storage_image_format(), VK_FORMAT_R8G8B8_SRGB, VK_FORMAT_R8G8B8_UNORM, VK_FORMAT_R8G8B8A8_SRGB, and VK_FORMAT_R8G8B8A8_UNORM.
Referenced by blender::gpu::VKTexture::image_view_get(), and vk_extended_usage_storage_image_format().
|
static |
Definition at line 50 of file vk_backend.cc.
References blender::gpu::VKBackend::device, blender::gpu::VKDevice::extension_name_get(), blender::gpu::VKBackend::get(), and vk_extension_get().
Referenced by blender::gpu::VKBackend::capabilities_init(), and vk_extension_get().
|
constexpr |
Definition at line 16 of file vk_memory_pool.hh.
References vk_external_memory_handle_type().
Referenced by blender::gpu::VKBuffer::create(), and vk_external_memory_handle_type().
|
static |
Definition at line 227 of file vk_backend.cc.
References CLOG_ERROR, LOG, vk_instance_create_for_platform_checks(), and vk_restrict_loader_layers().
Referenced by blender::gpu::VKBackend::is_supported(), blender::gpu::VKBackend::supported_devices_print(), and vk_instance_create_for_platform_checks().
| bool blender::gpu::vk_need_extended_usage_for_storage_image | ( | const eGPUTextureUsage | usage, |
| const GPUTextureFormatFlag | format_flag ) |
Test if these settings need EXTENDED_USAGE to be able to bind the texture as a (writable) storage image.
Definition at line 841 of file vk_common.cc.
References GPU_FORMAT_COMPRESSED, GPU_FORMAT_SRGB, blender::GPU_TEXTURE_USAGE_FORMAT_VIEW, and vk_need_extended_usage_for_storage_image().
Referenced by to_vk_image_create(), to_vk_image_usage(), vk_need_extended_usage_for_storage_image(), and blender::gpu::VKImageView::VKImageView().
|
static |
Disable implicit layers and only allow layers that we trust.
Render doc layer is hidden behind a debug flag. There are malicious layers that impersonate RenderDoc and can crash when loaded. See #139543.
Must be called before any vkCreateInstance so temporary Vulkan instances created during argument handling (e.g. --gpu-device help) don't load implicit layers either.
Definition at line 211 of file vk_backend.cc.
References blender::BLI_setenv(), blender::G, blender::G_DEBUG_GPU, and vk_restrict_loader_layers().
Referenced by vk_instance_create_for_platform_checks(), and vk_restrict_loader_layers().
|
inlinestatic |
|
inlinestatic |
Definition at line 177 of file gpu_state_private.hh.
References wrap().
| BLI_INLINE Texture * blender::gpu::wrap | ( | GLTexture * | texture | ) |
Definition at line 380 of file gl_texture.hh.
References BLI_INLINE, texture(), and wrap().
| BLI_INLINE Texture * blender::gpu::wrap | ( | MTLTexture * | texture | ) |
Definition at line 697 of file mtl_texture.hh.
References BLI_INLINE, texture(), and wrap().
Referenced by blender::acf_fcurve_name(), blender::achannel_is_part_of_disconnected_slot(), blender::gpu::GLTexturePool::acquire_texture_impl(), blender::gpu::MTLTexturePool::acquire_texture_impl(), blender::gpu::VKTexturePool::acquire_texture_impl(), blender::bke::action_blend_read_data(), blender::bke::action_blend_write(), blender::bke::action_foreach_id(), blender::bke::action_free_data(), blender::action_preview_render_prepare(), blender::ANIM_animchannel_keyframes_loop(), blender::ANIM_animdata_filter(), blender::animchannels_delete_containers(), blender::ed::greasepencil::apply_eval_grease_pencil_data(), blender::ed::object::apply_objects_internal(), blender::BKE_grease_pencil_has_curve_with_type(), blender::BKE_grease_pencil_material_index_remove(), blender::BKE_grease_pencil_material_index_used(), blender::BKE_grease_pencil_material_remap(), blender::BKE_grease_pencil_nomain_to_grease_pencil(), blender::BKE_grease_pencil_point_coords_apply(), blender::BKE_grease_pencil_point_coords_apply_with_mat4(), blender::BKE_grease_pencil_point_coords_get(), blender::BKE_grease_pencil_stroke_point_count(), blender::BKE_grease_pencil_vgroup_name_update(), blender::BKE_image_stamp_buf(), blender::blf_font_wrap_apply(), blender::blinn_specular(), blender::BPy_IDGroup_MapDataToPy(), blender::bke::greasepencil::clear_vertex_groups(), blender::click_select_channel_grease_pencil_layer_group(), blender::convert_grease_pencil_stroke_hardness_to_softness(), blender::ed::greasepencil::copy_layer_group_content(), blender::io::usd::create_usd_preview_shader(), blender::bke::CurvesFieldContext::CurvesFieldContext(), blender::ed::greasepencil::undo::StepDrawingGeometryBase::decode_valid_drawingtype_at_index_ensure(), blender::do_2d_mapping(), blender::draw_nla_main_data(), blender::ED_anim_ale_fcurve_delete(), blender::ED_grease_pencil_join_objects_exec(), blender::fix_curve_nurbs_knot_mode_custom(), blender::bke::GeometryFieldContext::GeometryFieldContext(), blender::get_keyframe_extents(), blender::io::usd::get_node_tex_image_wrap(), blender::GPU_context_active_get(), blender::GPU_context_create(), blender::GPU_fence_create(), blender::GPU_pixel_buffer_create(), blender::nodes::node_geo_store_named_attribute_cc::grease_pencil_add_missing_update_tags(), blender::ed::object::grease_pencil_clear_from_vgroup(), blender::grease_pencil_initialize_drawing_user_counts(), blender::ed::transform::grease_pencil_layer_apply_trans_data(), blender::bke::tests::ArmatureDeformTestBase::grease_pencil_test(), blender::ed::transform::grease_pencil_transdata_add_fake_drawing_users(), blender::ed::transform::grease_pencil_transdata_remove_fake_drawing_users(), blender::idprop_py_from_idp_idparray(), blender::ed::greasepencil::join_object_with_active(), blender::ui::greasepencil::LayerViewItemDragController::LayerViewItemDragController(), blender::metadata_box_height_get(), blender::ed::object::object_origin_set_exec(), blender::ed::animation::pastebuf_find_matching_copybuf_item(), blender::io::usd::USDBasisCurvesReader::read_curve_sample(), blender::rearrange_layered_action_slots(), blender::ui::rna_collection_search_update_fn(), blender::ed::vse::sequencer_write_copy_paste_file(), blender::io::grease_pencil::shift_to_bounds_center(), blender::space_text_draw_wrapped(), blender::ui::template_search_add_button_name(), blender::txt_find_string(), blender::bke::greasepencil::validate_drawing_vertex_groups(), blender::versioning_grease_pencil_stroke_radii_scaling(), blender::WM_cursor_grab_enable(), blender::wm_macro_modal(), blender::wm_operator_invoke(), blender::math::wrap_coord(), blender::gpu::GLTexturePool::~GLTexturePool(), and blender::gpu::MTLTexturePool::~MTLTexturePool().
|
inlinestatic |
Definition at line 382 of file gpu_texture_private.hh.
References wrap().
| BLI_INLINE Texture * blender::gpu::wrap | ( | VKTexture * | texture | ) |
Definition at line 192 of file vk_texture.hh.
References BLI_INLINE, texture(), and wrap().
| BLI_INLINE UniformBuf * blender::gpu::wrap | ( | VKUniformBuffer * | uniform_buffer | ) |
Definition at line 74 of file vk_uniform_buffer.hh.
References BLI_INLINE, and wrap().
| std::string blender::gpu::wrap_type | ( | StringRefNull | type_name, |
| const ShaderStage | stage ) |
Definition at line 467 of file mtl_shader_generate.cc.
References get_stage_class_name(), is_builtin_type(), and wrap_type().
Referenced by generate_buffer(), generate_subpass_inputs(), generate_uniforms(), and wrap_type().
|
static |
Definition at line 128 of file vk_shader_compiler.cc.
References cache_dir_get(), CLOG_TRACE, lexit::Vector< T >::data(), blender::G, blender::G_DEBUG_GPU_SHADER_DEBUG_INFO, LOG, SEP_STR, lexit::Vector< T >::size(), blender::gpu::VKShaderModule::sources_hash, blender::gpu::VKShaderModule::spirv_binary, blender::gpu::SPIRVSidecar::spirv_size, spirv_target_version_get(), blender::gpu::SPIRVSidecar::spirv_version, and write_spirv_to_disk().
Referenced by compile_ex(), and write_spirv_to_disk().
| void blender::gpu::xr_blit | ( | id< MTLTexture > | metal_xr_texture, |
| int | ofsx, | ||
| int | ofsy, | ||
| int | width, | ||
| int | height ) |
Definition at line 2105 of file mtl_context.mm.
Referenced by blender::gpu::MTLContext::MTLContext().
|
staticconstexpr |
Offset when searching for bindings.
When shaders combine images and samplers, the images have to be offset to find the correct shader input. Both textures and images are stored in the uniform list and their ID can be overlapping.
Definition at line 34 of file vk_state_manager.hh.
|
constexpr |
Definition at line 28 of file vk_immediate.hh.
Referenced by blender::gpu::GLImmediate::begin(), blender::gpu::GLImmediate::GLImmediate(), and new_buffer_size().
| const MTLSamplerState blender::gpu::DEFAULT_SAMPLER_STATE = {GPUSamplerState::default_sampler() } |
Definition at line 178 of file mtl_texture.hh.
Referenced by ensure_texture_bindings(), blender::gpu::MTLSamplerBinding::get_mtl_sampler(), and blender::gpu::MTLContext::MTLContext().
|
thread_local |
Definition at line 45 of file mtl_backend.mm.
Referenced by blender::gpu::MTLBackend::is_inside_render_boundary(), blender::gpu::MTLBackend::render_begin(), blender::gpu::MTLBackend::render_end(), and blender::gpu::MTLBackend::render_step().
|
thread_local |
Definition at line 46 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 24 of file gpu_capabilities.cc.
Referenced by blender::gpu::VKBackend::capabilities_init(), detect_workarounds(), blender::GPU_compilation_subprocess_override_set(), blender::GPU_depth_blitting_workaround(), blender::GPU_extension_get(), blender::GPU_extensions_len(), blender::GPU_frontbuffer_read_workaround(), blender::GPU_geometry_shader_support(), blender::GPU_hdr_support(), blender::GPU_max_batch_indices(), blender::GPU_max_batch_vertices(), blender::GPU_max_buffer_texture_size(), blender::GPU_max_compute_shader_storage_blocks(), blender::GPU_max_images(), blender::GPU_max_parallel_compilations(), blender::GPU_max_shader_storage_buffer_bindings(), blender::GPU_max_storage_buffer_size(), blender::GPU_max_texture_3d_size(), blender::GPU_max_texture_layers(), blender::GPU_max_texture_size(), blender::GPU_max_textures(), blender::GPU_max_uniform_buffer_size(), blender::GPU_max_uniforms_frag(), blender::GPU_max_uniforms_vert(), blender::GPU_max_varying_floats(), blender::GPU_max_vertex_attribs(), blender::GPU_max_work_group_count(), blender::GPU_max_work_group_size(), blender::GPU_mem_stats_supported(), blender::GPU_minimum_per_vertex_stride(), blender::GPU_multi_viewport_support(), blender::GPU_ray_query_support(), blender::GPU_stencil_classify_buffer_workaround(), blender::GPU_stencil_export_support(), blender::GPU_storage_buffer_alignment(), blender::GPU_texture_mipmap_usage(), blender::GPU_use_hq_normals_workaround(), blender::GPU_use_main_context_workaround(), blender::GPU_use_subprocess_compilation(), blender::GPU_vertex_pipeline_stores_and_atomics_support(), blender::gpu::GLBackend::init_resources(), blender::gpu::VKWorkarounds::log(), blender::gpu::VKContext::sync_backbuffer(), blender::texture_update_mipmap_chain(), blender::gpu::GLBackend::texturepool_alloc(), and blender::gpu::VKBackend::texturepool_alloc().
| GPUPlatformGlobal blender::gpu::GPG |
Definition at line 33 of file gpu_platform.cc.
Referenced by blender::gpu::DummyBackend::DummyBackend(), blender::GPU_platform_architecture(), blender::GPU_platform_devices_list(), blender::GPU_platform_gpu_name(), blender::GPU_platform_luid(), blender::GPU_platform_luid_node_mask(), blender::GPU_platform_renderer(), blender::GPU_platform_support_level(), blender::GPU_platform_support_level_key(), blender::GPU_platform_uuid(), blender::GPU_platform_vendor(), blender::GPU_platform_version(), blender::GPU_type_matches_ex(), init_device_list(), and blender::gpu::VKBackend::platform_init().
|
constexpr |
|
static |
Definition at line 30 of file gpu_framebuffer.cc.
Referenced by create_graphics_pipeline_libs(), create_graphics_pipeline_no_libs(), GPU_vulkan_is_supported_driver(), read_spirv_from_disk(), vk_instance_create_for_platform_checks(), and write_spirv_to_disk().
|
static |
Definition at line 42 of file mtl_backend.mm.
Referenced by blender::gpu::MTLBackend::metal_is_supported().
|
static |
Definition at line 33 of file mtl_batch.mm.
|
static |
Definition at line 28 of file mtl_command_buffer.mm.
Referenced by blender::gpu::MTLCommandBufferManager::submit().
|
static |
Definition at line 67 of file mtl_context.mm.
Referenced by blender::gpu::MTLContextComputeUtils::get_buffer_clear_pso(), and present().
|
static |
Definition at line 43 of file mtl_debug.mm.
Referenced by blender::gpu::MTLContext::debug_capture_begin().
|
static |
Definition at line 34 of file mtl_memory.mm.
Referenced by blender::gpu::MTLBufferPool::update_memory_pools().
|
static |
Definition at line 50 of file mtl_shader.mm.
Referenced by blender::gpu::MTLShader::bake_compute_pipeline_state(), and blender::gpu::MTLShader::bake_graphic_pipeline_state().
|
static |
Definition at line 28 of file mtl_storage_buffer.mm.
Referenced by blender::gpu::MTLStorageBuf::bind().
|
static |
Definition at line 21 of file mtl_texture_pool.mm.
|
static |
Definition at line 32 of file mtl_texture_util.mm.
|
static |
Definition at line 20 of file gl_texture_pool.cc.
|
static |
Definition at line 24 of file vk_descriptor_set.cc.
|
static |
Definition at line 25 of file vk_immediate.cc.
|
static |
Definition at line 17 of file vk_pixel_buffer.cc.
Referenced by blender::gpu::VKPixelBuffer::get_native_handle().
|
static |
Definition at line 39 of file vk_shader_compiler.cc.
|
constexpr |
Definition at line 902 of file vk_data_conversion.cc.
Referenced by convert().
|
constexpr |
Definition at line 903 of file vk_data_conversion.cc.
Referenced by convert().
|
static |
Definition at line 141 of file mtl_texture.hh.
|
static |
Definition at line 140 of file mtl_texture.hh.
|
constexpr |
Definition at line 374 of file vk_device.cc.
Referenced by blender::gpu::VKDevice::vendor_name().
|
constexpr |
Definition at line 376 of file vk_device.cc.
Referenced by blender::gpu::VKDevice::vendor_name().
|
constexpr |
Definition at line 375 of file vk_device.cc.
Referenced by blender::gpu::VKDevice::vendor_name().
|
constexpr |
Definition at line 373 of file vk_device.cc.
Referenced by blender::gpu::VKDevice::vendor_name().
|
constexpr |
Definition at line 372 of file vk_device.cc.
Referenced by blender::gpu::VKDevice::vendor_name().
|
constexpr |
Value for invisible elements in a GPU_PRIM_POINTS index buffer.
Definition at line 24 of file GPU_index_buffer.hh.
Referenced by blender::draw::create_lines_ibo_no_cyclic(), blender::draw::create_lines_ibo_with_cyclic(), blender::draw::extract_lines_paint_mask_subdiv(), blender::draw::extract_points_subdiv_bm(), blender::draw::extract_points_subdiv_mesh(), blender::GPU_indexbuf_init_ex(), blender::draw::index_buf_add_line_points(), and blender::draw::index_buf_add_nurbs_lines().
|
constexpr |
Definition at line 904 of file vk_data_conversion.cc.
|
constexpr |
Definition at line 905 of file vk_data_conversion.cc.
|
constexpr |
Definition at line 906 of file vk_data_conversion.cc.
|
static |
Definition at line 13 of file mtl_query.mm.
Referenced by blender::gpu::MTLQueryPool::begin_query(), and blender::gpu::MTLQueryPool::get_occlusion_result().
|
static |
Definition at line 17 of file mtl_query.mm.
Referenced by blender::gpu::MTLQueryPool::begin_query().