Blender  V3.3
Classes | Namespaces | Enumerations | Functions | Variables
mtl_texture.hh File Reference
#include <Cocoa/Cocoa.h>
#include <Metal/Metal.h>
#include <QuartzCore/QuartzCore.h>
#include "BLI_assert.h"
#include "MEM_guardedalloc.h"
#include "gpu_texture_private.hh"
#include "BLI_map.hh"
#include "GPU_texture.h"
#include <mutex>
#include <thread>

Go to the source code of this file.

Classes

struct  TextureUpdateRoutineSpecialisation
 
struct  DepthTextureUpdateRoutineSpecialisation
 
struct  TextureReadRoutineSpecialisation
 
struct  blender::gpu::MTLSamplerState
 
class  blender::gpu::MTLTexture
 

Namespaces

 blender
 
 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)
 
bool blender::gpu::mtl_format_is_writable (MTLPixelFormat format)
 
MTLPixelFormat blender::gpu::mtl_format_get_writeable_view_format (MTLPixelFormat format)
 
eGPUDataFormat blender::gpu::to_mtl_internal_data_format (eGPUTextureFormat tex_format)
 
Texture Utility Functions
MTLPixelFormat blender::gpu::gpu_texture_format_to_metal (eGPUTextureFormat tex_format)
 
int 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 = {GPU_SAMPLER_DEFAULT }
 

Enumeration Type Documentation

◆ DepthTextureUpdateMode

Enumerator
MTL_DEPTH_UPDATE_MODE_FLOAT 
MTL_DEPTH_UPDATE_MODE_INT24 
MTL_DEPTH_UPDATE_MODE_INT32 

Definition at line 65 of file mtl_texture.hh.