Blender V4.3
vk_data_conversion.hh File Reference

Go to the source code of this file.

Classes

struct  blender::gpu::VertexFormatConverter
 
class  blender::gpu::FloatingPointFormat< HasSignBit, MantissaBitLen, ExponentBitLen >
 

Namespaces

namespace  blender
 
namespace  blender::gpu
 

Functions

bool blender::gpu::conversion_needed (const GPUVertFormat &vertex_format)
 
void blender::gpu::convert_in_place (void *data, const GPUVertFormat &vertex_format, const uint vertex_len)
 
API
void blender::gpu::convert_host_to_device (void *dst_buffer, const void *src_buffer, size_t buffer_size, eGPUDataFormat host_format, eGPUTextureFormat host_texture_format, eGPUTextureFormat device_format)
 
void blender::gpu::convert_device_to_host (void *dst_buffer, const void *src_buffer, size_t buffer_size, eGPUDataFormat host_format, eGPUTextureFormat host_texture_format, eGPUTextureFormat device_format)
 

Floating point conversions

using blender::gpu::FormatF32 = FloatingPointFormat<true, 23, 8>
 
using blender::gpu::FormatF11 = FloatingPointFormat<false, 6, 5>
 
using blender::gpu::FormatF10 = FloatingPointFormat<false, 5, 5>
 
template<typename DestinationFormat , typename SourceFormat , bool ClampNegativeToZero = true>
uint32_t blender::gpu::convert_float_formats (uint32_t value)