Blender V5.0
mtl_texture.hh File Reference
#include "BLI_assert.h"
#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  TextureUpdateRoutineSpecialisation
struct  DepthTextureUpdateRoutineSpecialisation
struct  TextureReadRoutineSpecialisation
struct  blender::gpu::MTLSamplerState
class  blender::gpu::MTLTexture
class  blender::gpu::MTLPixelBuffer

Namespaces

namespace  blender
namespace  blender::gpu

Enumerations

enum  DepthTextureUpdateMode { MTL_DEPTH_UPDATE_MODE_FLOAT = 0 , MTL_DEPTH_UPDATE_MODE_INT24 = 1 , 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)
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() }

Enumeration Type Documentation

◆ DepthTextureUpdateMode

Enumerator
MTL_DEPTH_UPDATE_MODE_FLOAT 
MTL_DEPTH_UPDATE_MODE_INT24 
MTL_DEPTH_UPDATE_MODE_INT32 

Definition at line 77 of file mtl_texture.hh.