diff --git a/include/librashader.h b/include/librashader.h index b2bbbbc..a88e457 100644 --- a/include/librashader.h +++ b/include/librashader.h @@ -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. /// diff --git a/include/librashader_ld.h b/include/librashader_ld.h index 7a56448..a02520d 100644 --- a/include/librashader_ld.h +++ b/include/librashader_ld.h @@ -572,6 +572,7 @@ typedef struct libra_instance_t { /// - Direct3D11 /// - Direct3D12 /// - Metal + /// - Direct3D9 (HLSL) /// /// This will also set the appropriate video driver extensions. /// diff --git a/librashader-capi/src/ctypes.rs b/librashader-capi/src/ctypes.rs index 0a250d7..a1fbe9e 100644 --- a/librashader-capi/src/ctypes.rs +++ b/librashader-capi/src/ctypes.rs @@ -48,6 +48,8 @@ pub enum LIBRA_PRESET_CTX_RUNTIME { D3D12, /// Metal Metal, + /// Direct3D 9 + D3D9_HLSL } impl From for VideoDriver { @@ -59,6 +61,7 @@ impl From 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 } } } diff --git a/librashader-capi/src/wildcard.rs b/librashader-capi/src/wildcard.rs index 391ef77..97b4c83 100644 --- a/librashader-capi/src/wildcard.rs +++ b/librashader-capi/src/wildcard.rs @@ -145,6 +145,7 @@ extern_fn! { /// - Direct3D11 /// - Direct3D12 /// - Metal + /// - Direct3D9 (HLSL) /// /// This will also set the appropriate video driver extensions. ///