Blender V5.3
mtl_texture.hh File Reference
#include "BLI_assert.hh"
#include "BLI_map.hh"
#include "GPU_texture.hh"
#include "MEM_guardedalloc.h"
#include "gpu_texture_private.hh"
#include <mutex>
#include <string>
#include <thread>
#include <Cocoa/Cocoa.h>
#include <Metal/Metal.h>
#include <QuartzCore/QuartzCore.h>

Go to the source code of this file.

Classes

struct  blender::TextureUpdateRoutineSpecialization
struct  blender::DepthTextureUpdateRoutineSpecialization
struct  blender::TextureReadRoutineSpecialization
struct  blender::gpu::MTLSamplerState
class  blender::gpu::MTLTexture
class  blender::gpu::MTLPixelBuffer

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::gpu

Enumerations

enum  blender::DepthTextureUpdateMode { blender::MTL_DEPTH_UPDATE_MODE_FLOAT = 0 , blender::MTL_DEPTH_UPDATE_MODE_INT24 = 1 , blender::MTL_DEPTH_UPDATE_MODE_INT32 = 2 }

Functions

std::string blender::gpu::tex_data_format_to_msl_type_str (eGPUDataFormat type)
std::string blender::gpu::tex_data_format_to_msl_texture_template_type (eGPUDataFormat type)
MTLTextureType blender::gpu::to_metal_type (GPUTextureType type)
bool blender::gpu::mtl_format_is_writable (MTLPixelFormat format)
MTLPixelFormat blender::gpu::mtl_format_get_writeable_view_format (MTLPixelFormat format)
MTLTextureUsage blender::gpu::mtl_usage_from_gpu (eGPUTextureUsage usage)
eGPUTextureUsage blender::gpu::gpu_usage_from_mtl (MTLTextureUsage mtl_usage)
BLI_INLINE MTLTexture * blender::gpu::unwrap (Texture *tex)
BLI_INLINE Texture * blender::gpu::wrap (MTLTexture *texture)
Texture Utility Functions
MTLPixelFormat blender::gpu::gpu_texture_format_to_metal (TextureFormat tex_format)
size_t blender::gpu::get_mtl_format_bytesize (MTLPixelFormat tex_format)
int blender::gpu::get_mtl_format_num_components (MTLPixelFormat tex_format)
bool blender::gpu::mtl_format_supports_blending (MTLPixelFormat format)

Variables

static const int blender::gpu::MTL_MAX_MIPMAP_COUNT = 15
static const int blender::gpu::MTL_MAX_FBO_ATTACHED = 16
const MTLSamplerState blender::gpu::DEFAULT_SAMPLER_STATE = {GPUSamplerState::default_sampler() }