#[repr(C)]pub struct IPLOpenCLDeviceSettings {
pub type_: IPLOpenCLDeviceType,
pub numCUsToReserve: IPLint32,
pub fractionCUsForIRUpdate: IPLfloat32,
pub requiresTAN: IPLbool,
}Expand description
Specifies requirements that an OpenCL device must meet in order to be considered when listing OpenCL devices.
Fields§
§type_: IPLOpenCLDeviceTypeThe type of device. Set to \c IPL_OPENCLDEVICETYPE_ANY to consider all available devices.
numCUsToReserve: IPLint32The number of GPU compute units (CUs) that should be reserved for use by Steam Audio. If set to a non-zero value, then a GPU will be included in the device list only if it can reserve at least this many CUs. Set to 0 to indicate that Steam Audio can use the entire GPU, in which case all available GPUs will be considered.
Ignored if \c type is \c IPL_OPENCLDEVICETYPE_CPU.
fractionCUsForIRUpdate: IPLfloat32The fraction of reserved CUs that should be used for impulse response (IR) update. IR update includes: a) ray tracing using Radeon Rays to simulate sound propagation, and/or b) pre-transformation of IRs for convolution using TrueAudio Next. Steam Audio will only list GPU devices that are able to subdivide the reserved CUs as per this value. The value must be between 0 and 1.
For example, if \c numCUsToReserve is \c 8, and \c fractionCUsForIRUpdate is \c 0.5f, then 4 CUs will be used for IR update and 4 CUs will be used for convolution. Below are typical scenarios:
-
Using only TrueAudio Next. Set \c fractionCUsForIRUpdate to \c 0.5f. This ensures that reserved CUs are available for IR update as well as convolution.
-
Using TrueAudio Next and Radeon Rays for real-time simulation and rendering. Choosing \c fractionCUsForIRUpdate may require some experimentation to utilize reserved CUs optimally. You can start by setting \c fractionCUsForIRUpdate to \c 0.5f. However, if IR calculation has high latency with these settings, increase \c fractionCUsForIRUpdate to use more CUs for ray tracing.
-
Using only Radeon Rays. Set \c fractionCUsForIRUpdate to \c 1, to make sure all the reserved CUs are used for ray tracing. If using Steam Audio for preprocessing (e.g. baking reverb), then consider setting \c numCUsToReserve to \c 0 to use the entire GPU for accelerated ray tracing.
Ignored if \c type is \c IPL_OPENCLDEVICETYPE_CPU or \c numCUsToReserve is \c 0.
requiresTAN: IPLboolIf \c IPL_TRUE, then the GPU device must support TrueAudio Next. It is not necessary to set this to \c IPL_TRUE if \c numCUsToReserve or \c fractionCUsForIRUpdate are set to non-zero values.
Trait Implementations§
Source§impl Clone for IPLOpenCLDeviceSettings
impl Clone for IPLOpenCLDeviceSettings
Source§fn clone(&self) -> IPLOpenCLDeviceSettings
fn clone(&self) -> IPLOpenCLDeviceSettings
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more