Blender V5.3
vk_data_conversion.hh File Reference

Go to the source code of this file.

Classes

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

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::gpu

Functions

API
bool blender::gpu::needs_conversion (eGPUDataFormat host_format, TextureFormat host_texture_format, TextureFormat device_format)
 Check if data conversion is needed when uploading host_format to a device_format.
void blender::gpu::convert_host_to_device (void *dst_buffer, const void *src_buffer, size_t buffer_size, eGPUDataFormat host_format, TextureFormat host_texture_format, TextureFormat device_format)
void blender::gpu::convert_device_to_host (void *dst_buffer, const void *src_buffer, size_t buffer_size, eGPUDataFormat host_format, TextureFormat host_texture_format, TextureFormat 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)