Blender  V3.3
Classes | Namespaces | Macros | Typedefs | Enumerations | Functions
gpu_texture_private.hh File Reference
#include "BLI_assert.h"
#include "GPU_vertex_buffer.h"
#include "gpu_framebuffer_private.hh"

Go to the source code of this file.

Classes

class  blender::gpu::Texture
 

Namespaces

 blender
 
 blender::gpu
 

Macros

#define DEBUG_NAME_LEN   8
 
#define GPU_TEX_MAX_FBO_ATTACHED   32
 

Typedefs

typedef enum blender::gpu::eGPUTextureFormatFlag blender::gpu::eGPUTextureFormatFlag
 
typedef enum blender::gpu::eGPUTextureType blender::gpu::eGPUTextureType
 

Enumerations

enum  blender::gpu::eGPUTextureFormatFlag {
  blender::gpu::GPU_FORMAT_DEPTH = (1 << 0) , blender::gpu::GPU_FORMAT_STENCIL = (1 << 1) , blender::gpu::GPU_FORMAT_INTEGER = (1 << 2) , blender::gpu::GPU_FORMAT_FLOAT = (1 << 3) ,
  blender::gpu::GPU_FORMAT_COMPRESSED = (1 << 4) , blender::gpu::GPU_FORMAT_DEPTH_STENCIL = (GPU_FORMAT_DEPTH | GPU_FORMAT_STENCIL)
}
 
enum  blender::gpu::eGPUTextureType {
  blender::gpu::GPU_TEXTURE_1D = (1 << 0) , blender::gpu::GPU_TEXTURE_2D = (1 << 1) , blender::gpu::GPU_TEXTURE_3D = (1 << 2) , blender::gpu::GPU_TEXTURE_CUBE = (1 << 3) ,
  blender::gpu::GPU_TEXTURE_ARRAY = (1 << 4) , blender::gpu::GPU_TEXTURE_BUFFER = (1 << 5) , blender::gpu::GPU_TEXTURE_1D_ARRAY = (GPU_TEXTURE_1D | GPU_TEXTURE_ARRAY) , blender::gpu::GPU_TEXTURE_2D_ARRAY = (GPU_TEXTURE_2D | GPU_TEXTURE_ARRAY) ,
  blender::gpu::GPU_TEXTURE_CUBE_ARRAY = (GPU_TEXTURE_CUBE | GPU_TEXTURE_ARRAY)
}
 

Functions

static GPUTextureblender::gpu::wrap (Texture *vert)
 
static Textureblender::gpu::unwrap (GPUTexture *vert)
 
static const Textureblender::gpu::unwrap (const GPUTexture *vert)
 
size_t blender::gpu::to_bytesize (eGPUTextureFormat format)
 
size_t blender::gpu::to_block_size (eGPUTextureFormat data_type)
 
eGPUTextureFormatFlag blender::gpu::to_format_flag (eGPUTextureFormat format)
 
int blender::gpu::to_component_len (eGPUTextureFormat format)
 
size_t blender::gpu::to_bytesize (eGPUDataFormat data_format)
 
size_t blender::gpu::to_bytesize (eGPUTextureFormat tex_format, eGPUDataFormat data_format)
 
bool blender::gpu::validate_data_format (eGPUTextureFormat tex_format, eGPUDataFormat data_format)
 
bool blender::gpu::validate_data_format_mtl (eGPUTextureFormat tex_format, eGPUDataFormat data_format)
 
eGPUDataFormat blender::gpu::to_data_format (eGPUTextureFormat tex_format)
 
eGPUFrameBufferBits blender::gpu::to_framebuffer_bits (eGPUTextureFormat tex_format)
 
static eGPUTextureFormat blender::gpu::to_texture_format (const GPUVertFormat *format)
 

Macro Definition Documentation

◆ DEBUG_NAME_LEN

#define DEBUG_NAME_LEN   8

Definition at line 49 of file gpu_texture_private.hh.

◆ GPU_TEX_MAX_FBO_ATTACHED

#define GPU_TEX_MAX_FBO_ATTACHED   32

Definition at line 53 of file gpu_texture_private.hh.