Blender  V3.3
Public Member Functions | Public Attributes | List of all members
blender::gpu::MTLContextTextureUtils Struct Reference

#include <mtl_context.hh>

Public Member Functions

template<typename T >
void free_cached_pso_map (blender::Map< T, id< MTLComputePipelineState >> &map)
 
void init ()
 
void cleanup ()
 

Public Attributes

blender::Map< DepthTextureUpdateRoutineSpecialisation, GPUShader * > depth_2d_update_shaders
 
GPUShaderfullscreen_blit_shader = nullptr
 
blender::Map< TextureReadRoutineSpecialisation, id< MTLComputePipelineState > > texture_1d_read_compute_psos
 
blender::Map< TextureReadRoutineSpecialisation, id< MTLComputePipelineState > > texture_1d_array_read_compute_psos
 
blender::Map< TextureReadRoutineSpecialisation, id< MTLComputePipelineState > > texture_2d_read_compute_psos
 
blender::Map< TextureReadRoutineSpecialisation, id< MTLComputePipelineState > > texture_2d_array_read_compute_psos
 
blender::Map< TextureReadRoutineSpecialisation, id< MTLComputePipelineState > > texture_3d_read_compute_psos
 
blender::Map< TextureReadRoutineSpecialisation, id< MTLComputePipelineState > > texture_cube_read_compute_psos
 
blender::Map< TextureReadRoutineSpecialisation, id< MTLComputePipelineState > > texture_cube_array_read_compute_psos
 
blender::Map< TextureReadRoutineSpecialisation, id< MTLComputePipelineState > > texture_buffer_read_compute_psos
 
blender::Map< TextureUpdateRoutineSpecialisation, id< MTLComputePipelineState > > texture_1d_update_compute_psos
 
blender::Map< TextureUpdateRoutineSpecialisation, id< MTLComputePipelineState > > texture_1d_array_update_compute_psos
 
blender::Map< TextureUpdateRoutineSpecialisation, id< MTLComputePipelineState > > texture_2d_update_compute_psos
 
blender::Map< TextureUpdateRoutineSpecialisation, id< MTLComputePipelineState > > texture_2d_array_update_compute_psos
 
blender::Map< TextureUpdateRoutineSpecialisation, id< MTLComputePipelineState > > texture_3d_update_compute_psos
 
blender::Map< TextureUpdateRoutineSpecialisation, id< MTLComputePipelineState > > texture_cube_update_compute_psos
 
blender::Map< TextureUpdateRoutineSpecialisation, id< MTLComputePipelineState > > texture_cube_array_update_compute_psos
 
blender::Map< TextureUpdateRoutineSpecialisation, id< MTLComputePipelineState > > texture_buffer_update_compute_psos
 

Detailed Description

Definition at line 244 of file mtl_context.hh.

Member Function Documentation

◆ cleanup()

void blender::gpu::MTLContextTextureUtils::cleanup ( )
inline

◆ free_cached_pso_map()

template<typename T >
void blender::gpu::MTLContextTextureUtils::free_cached_pso_map ( blender::Map< T, id< MTLComputePipelineState >> &  map)
inline

Definition at line 289 of file mtl_context.hh.

References map, and T.

Referenced by cleanup().

◆ init()

void blender::gpu::MTLContextTextureUtils::init ( )
inline

Definition at line 297 of file mtl_context.hh.

References fullscreen_blit_shader.

Referenced by blender::gpu::MTLContext::MTLContext().

Member Data Documentation

◆ depth_2d_update_shaders

blender::Map<DepthTextureUpdateRoutineSpecialisation, GPUShader *> blender::gpu::MTLContextTextureUtils::depth_2d_update_shaders

Definition at line 251 of file mtl_context.hh.

◆ fullscreen_blit_shader

GPUShader* blender::gpu::MTLContextTextureUtils::fullscreen_blit_shader = nullptr

Definition at line 252 of file mtl_context.hh.

Referenced by cleanup(), and init().

◆ texture_1d_array_read_compute_psos

blender::Map<TextureReadRoutineSpecialisation, id<MTLComputePipelineState> > blender::gpu::MTLContextTextureUtils::texture_1d_array_read_compute_psos

Definition at line 258 of file mtl_context.hh.

Referenced by cleanup().

◆ texture_1d_array_update_compute_psos

blender::Map<TextureUpdateRoutineSpecialisation, id<MTLComputePipelineState> > blender::gpu::MTLContextTextureUtils::texture_1d_array_update_compute_psos

Definition at line 275 of file mtl_context.hh.

Referenced by cleanup().

◆ texture_1d_read_compute_psos

blender::Map<TextureReadRoutineSpecialisation, id<MTLComputePipelineState> > blender::gpu::MTLContextTextureUtils::texture_1d_read_compute_psos

Definition at line 256 of file mtl_context.hh.

Referenced by cleanup().

◆ texture_1d_update_compute_psos

blender::Map<TextureUpdateRoutineSpecialisation, id<MTLComputePipelineState> > blender::gpu::MTLContextTextureUtils::texture_1d_update_compute_psos

Definition at line 273 of file mtl_context.hh.

Referenced by cleanup().

◆ texture_2d_array_read_compute_psos

blender::Map<TextureReadRoutineSpecialisation, id<MTLComputePipelineState> > blender::gpu::MTLContextTextureUtils::texture_2d_array_read_compute_psos

Definition at line 262 of file mtl_context.hh.

Referenced by cleanup().

◆ texture_2d_array_update_compute_psos

blender::Map<TextureUpdateRoutineSpecialisation, id<MTLComputePipelineState> > blender::gpu::MTLContextTextureUtils::texture_2d_array_update_compute_psos

Definition at line 279 of file mtl_context.hh.

Referenced by cleanup().

◆ texture_2d_read_compute_psos

blender::Map<TextureReadRoutineSpecialisation, id<MTLComputePipelineState> > blender::gpu::MTLContextTextureUtils::texture_2d_read_compute_psos

Definition at line 260 of file mtl_context.hh.

Referenced by cleanup().

◆ texture_2d_update_compute_psos

blender::Map<TextureUpdateRoutineSpecialisation, id<MTLComputePipelineState> > blender::gpu::MTLContextTextureUtils::texture_2d_update_compute_psos

Definition at line 277 of file mtl_context.hh.

Referenced by cleanup().

◆ texture_3d_read_compute_psos

blender::Map<TextureReadRoutineSpecialisation, id<MTLComputePipelineState> > blender::gpu::MTLContextTextureUtils::texture_3d_read_compute_psos

Definition at line 264 of file mtl_context.hh.

Referenced by cleanup().

◆ texture_3d_update_compute_psos

blender::Map<TextureUpdateRoutineSpecialisation, id<MTLComputePipelineState> > blender::gpu::MTLContextTextureUtils::texture_3d_update_compute_psos

Definition at line 281 of file mtl_context.hh.

Referenced by cleanup().

◆ texture_buffer_read_compute_psos

blender::Map<TextureReadRoutineSpecialisation, id<MTLComputePipelineState> > blender::gpu::MTLContextTextureUtils::texture_buffer_read_compute_psos

Definition at line 270 of file mtl_context.hh.

Referenced by cleanup().

◆ texture_buffer_update_compute_psos

blender::Map<TextureUpdateRoutineSpecialisation, id<MTLComputePipelineState> > blender::gpu::MTLContextTextureUtils::texture_buffer_update_compute_psos

Definition at line 287 of file mtl_context.hh.

Referenced by cleanup().

◆ texture_cube_array_read_compute_psos

blender::Map<TextureReadRoutineSpecialisation, id<MTLComputePipelineState> > blender::gpu::MTLContextTextureUtils::texture_cube_array_read_compute_psos

Definition at line 268 of file mtl_context.hh.

Referenced by cleanup().

◆ texture_cube_array_update_compute_psos

blender::Map<TextureUpdateRoutineSpecialisation, id<MTLComputePipelineState> > blender::gpu::MTLContextTextureUtils::texture_cube_array_update_compute_psos

Definition at line 285 of file mtl_context.hh.

Referenced by cleanup().

◆ texture_cube_read_compute_psos

blender::Map<TextureReadRoutineSpecialisation, id<MTLComputePipelineState> > blender::gpu::MTLContextTextureUtils::texture_cube_read_compute_psos

Definition at line 266 of file mtl_context.hh.

Referenced by cleanup().

◆ texture_cube_update_compute_psos

blender::Map<TextureUpdateRoutineSpecialisation, id<MTLComputePipelineState> > blender::gpu::MTLContextTextureUtils::texture_cube_update_compute_psos

Definition at line 283 of file mtl_context.hh.

Referenced by cleanup().


The documentation for this struct was generated from the following file: