capi(presets): support d3d9_hlsl VID-DRV

This commit is contained in:
chyyran 2024-10-03 00:26:59 -04:00
parent 0007bd6d98
commit 4abd48eb24
4 changed files with 8 additions and 0 deletions

View file

@ -136,6 +136,8 @@ enum LIBRA_PRESET_CTX_RUNTIME
LIBRA_PRESET_CTX_RUNTIME_D3D12,
/// Metal
LIBRA_PRESET_CTX_RUNTIME_METAL,
/// Direct3D 9
LIBRA_PRESET_CTX_RUNTIME_D3D9_HLSL,
};
#ifndef __cplusplus
typedef uint32_t LIBRA_PRESET_CTX_RUNTIME;
@ -2108,6 +2110,7 @@ libra_error_t libra_preset_ctx_set_param(libra_preset_ctx_t *context,
/// - Direct3D11
/// - Direct3D12
/// - Metal
/// - Direct3D9 (HLSL)
///
/// This will also set the appropriate video driver extensions.
///

View file

@ -572,6 +572,7 @@ typedef struct libra_instance_t {
/// - Direct3D11
/// - Direct3D12
/// - Metal
/// - Direct3D9 (HLSL)
///
/// This will also set the appropriate video driver extensions.
///

View file

@ -48,6 +48,8 @@ pub enum LIBRA_PRESET_CTX_RUNTIME {
D3D12,
/// Metal
Metal,
/// Direct3D 9
D3D9_HLSL
}
impl From<LIBRA_PRESET_CTX_RUNTIME> for VideoDriver {
@ -59,6 +61,7 @@ impl From<LIBRA_PRESET_CTX_RUNTIME> for VideoDriver {
LIBRA_PRESET_CTX_RUNTIME::D3D11 => VideoDriver::Direct3D11,
LIBRA_PRESET_CTX_RUNTIME::D3D12 => VideoDriver::Direct3D12,
LIBRA_PRESET_CTX_RUNTIME::Metal => VideoDriver::Metal,
LIBRA_PRESET_CTX_RUNTIME::D3D9_HLSL => VideoDriver::Direct3D9Hlsl
}
}
}

View file

@ -145,6 +145,7 @@ extern_fn! {
/// - Direct3D11
/// - Direct3D12
/// - Metal
/// - Direct3D9 (HLSL)
///
/// This will also set the appropriate video driver extensions.
///