Blender V5.0
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_MAX_IMAGE   8
#define GPU_TEX_MAX_FBO_ATTACHED   32

Enumerations

enum  blender::gpu::GPUTextureFormatFlag {
  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::GPUTextureType {
  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::GPUSamplerFormat {
  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

bool blender::gpu::is_half_float (TextureFormat format)
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 (TextureFormat format)
size_t blender::gpu::to_block_size (TextureFormat data_type)
GPUTextureFormatFlag blender::gpu::to_format_flag (TextureFormat format)
int blender::gpu::to_component_len (TextureFormat format)
size_t blender::gpu::to_bytesize (eGPUDataFormat data_format)
size_t blender::gpu::to_bytesize (TextureFormat tex_format, eGPUDataFormat data_format)
constexpr bool blender::gpu::validate_data_format (TextureFormat tex_format, eGPUDataFormat data_format)
eGPUDataFormat blender::gpu::to_texture_data_format (TextureFormat tex_format)
GPUFrameBufferBits blender::gpu::to_framebuffer_bits (TextureFormat tex_format)
static TextureFormat blender::gpu::to_texture_format (const GPUVertFormat *format)

Macro Definition Documentation

◆ DEBUG_NAME_LEN

#define DEBUG_NAME_LEN   64

Definition at line 84 of file gpu_texture_private.hh.

◆ GPU_MAX_IMAGE

#define GPU_MAX_IMAGE   8

◆ GPU_TEX_MAX_FBO_ATTACHED

#define GPU_TEX_MAX_FBO_ATTACHED   32

Definition at line 93 of file gpu_texture_private.hh.