Blender V4.3
gpu_texture_private.hh File Reference

Go to the source code of this file.

Classes

class  blender::gpu::Texture
 
class  blender::gpu::PixelBuffer
 

Namespaces

namespace  blender
 
namespace  blender::gpu
 

Macros

#define DEBUG_NAME_LEN   64
 
#define GPU_TEX_MAX_FBO_ATTACHED   32
 

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_NORMALIZED_INTEGER = (1 << 3) ,
  blender::gpu::GPU_FORMAT_FLOAT = (1 << 4) , blender::gpu::GPU_FORMAT_COMPRESSED = (1 << 5) , blender::gpu::GPU_FORMAT_SRGB = (1 << 6) , blender::gpu::GPU_FORMAT_SIGNED = (1 << 7) ,
  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)
}
 
enum  blender::gpu::eGPUSamplerFormat {
  blender::gpu::GPU_SAMPLER_TYPE_FLOAT = 0 , blender::gpu::GPU_SAMPLER_TYPE_INT = 1 , blender::gpu::GPU_SAMPLER_TYPE_UINT = 2 , blender::gpu::GPU_SAMPLER_TYPE_DEPTH = 3 ,
  blender::gpu::GPU_SAMPLER_TYPE_MAX = 4
}
 

Functions

static GPUTexture * blender::gpu::wrap (Texture *vert)
 
static Textureblender::gpu::unwrap (GPUTexture *vert)
 
static const Textureblender::gpu::unwrap (const GPUTexture *vert)
 
static GPUPixelBuffer * blender::gpu::wrap (PixelBuffer *pixbuf)
 
static PixelBufferblender::gpu::unwrap (GPUPixelBuffer *pixbuf)
 
static const PixelBufferblender::gpu::unwrap (const GPUPixelBuffer *pixbuf)
 
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)
 
constexpr bool blender::gpu::validate_data_format (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   64

Definition at line 72 of file gpu_texture_private.hh.

◆ GPU_TEX_MAX_FBO_ATTACHED

#define GPU_TEX_MAX_FBO_ATTACHED   32

Definition at line 78 of file gpu_texture_private.hh.