capi(presets): support d3d9_hlsl
VID-DRV
This commit is contained in:
parent
0007bd6d98
commit
4abd48eb24
|
@ -136,6 +136,8 @@ enum LIBRA_PRESET_CTX_RUNTIME
|
||||||
LIBRA_PRESET_CTX_RUNTIME_D3D12,
|
LIBRA_PRESET_CTX_RUNTIME_D3D12,
|
||||||
/// Metal
|
/// Metal
|
||||||
LIBRA_PRESET_CTX_RUNTIME_METAL,
|
LIBRA_PRESET_CTX_RUNTIME_METAL,
|
||||||
|
/// Direct3D 9
|
||||||
|
LIBRA_PRESET_CTX_RUNTIME_D3D9_HLSL,
|
||||||
};
|
};
|
||||||
#ifndef __cplusplus
|
#ifndef __cplusplus
|
||||||
typedef uint32_t LIBRA_PRESET_CTX_RUNTIME;
|
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
|
/// - Direct3D11
|
||||||
/// - Direct3D12
|
/// - Direct3D12
|
||||||
/// - Metal
|
/// - Metal
|
||||||
|
/// - Direct3D9 (HLSL)
|
||||||
///
|
///
|
||||||
/// This will also set the appropriate video driver extensions.
|
/// This will also set the appropriate video driver extensions.
|
||||||
///
|
///
|
||||||
|
|
|
@ -572,6 +572,7 @@ typedef struct libra_instance_t {
|
||||||
/// - Direct3D11
|
/// - Direct3D11
|
||||||
/// - Direct3D12
|
/// - Direct3D12
|
||||||
/// - Metal
|
/// - Metal
|
||||||
|
/// - Direct3D9 (HLSL)
|
||||||
///
|
///
|
||||||
/// This will also set the appropriate video driver extensions.
|
/// This will also set the appropriate video driver extensions.
|
||||||
///
|
///
|
||||||
|
|
|
@ -48,6 +48,8 @@ pub enum LIBRA_PRESET_CTX_RUNTIME {
|
||||||
D3D12,
|
D3D12,
|
||||||
/// Metal
|
/// Metal
|
||||||
Metal,
|
Metal,
|
||||||
|
/// Direct3D 9
|
||||||
|
D3D9_HLSL
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<LIBRA_PRESET_CTX_RUNTIME> for VideoDriver {
|
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::D3D11 => VideoDriver::Direct3D11,
|
||||||
LIBRA_PRESET_CTX_RUNTIME::D3D12 => VideoDriver::Direct3D12,
|
LIBRA_PRESET_CTX_RUNTIME::D3D12 => VideoDriver::Direct3D12,
|
||||||
LIBRA_PRESET_CTX_RUNTIME::Metal => VideoDriver::Metal,
|
LIBRA_PRESET_CTX_RUNTIME::Metal => VideoDriver::Metal,
|
||||||
|
LIBRA_PRESET_CTX_RUNTIME::D3D9_HLSL => VideoDriver::Direct3D9Hlsl
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -145,6 +145,7 @@ extern_fn! {
|
||||||
/// - Direct3D11
|
/// - Direct3D11
|
||||||
/// - Direct3D12
|
/// - Direct3D12
|
||||||
/// - Metal
|
/// - Metal
|
||||||
|
/// - Direct3D9 (HLSL)
|
||||||
///
|
///
|
||||||
/// This will also set the appropriate video driver extensions.
|
/// This will also set the appropriate video driver extensions.
|
||||||
///
|
///
|
||||||
|
|
Loading…
Reference in a new issue