MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
GpuDataFormat.cpp File Reference
#include "GpuDataFormat.hpp"
+ Include dependency graph for GpuDataFormat.cpp:

Go to the source code of this file.

Namespaces

namespace  MayaFlux
 Main namespace for the Maya Flux audio engine.
 
namespace  MayaFlux::Kakshya
 

Functions

GpuBlockLayout MayaFlux::Kakshya::gpu_block_layout (std::span< const GpuDataFormat > fields)
 Lay out fields in declaration order under std430 rules.
 
size_t MayaFlux::Kakshya::gpu_data_format_align (GpuDataFormat fmt) noexcept
 Base alignment in bytes of one element, following std430 rules.
 
size_t MayaFlux::Kakshya::gpu_data_format_bytes (GpuDataFormat fmt) noexcept
 Byte size of one element of a GpuDataFormat.
 
size_t MayaFlux::Kakshya::gpu_data_format_components (GpuDataFormat fmt) noexcept
 Number of scalar components in one element of a GpuDataFormat.
 
size_t MayaFlux::Kakshya::gpu_value_write (const GpuValue &value, std::span< std::byte > out) noexcept
 Copies the held value's bytes into out, unconverted.
 
bool MayaFlux::Kakshya::pack_gpu_components (GpuDataFormat dst, std::span< const double > components, std::span< std::byte > out) noexcept
 Writes scalar components into out as one element of dst.