capi(mtl): prep metal capi
This commit is contained in:
parent
3b0531dc62
commit
ab31abb3d7
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -1555,8 +1555,10 @@ version = "0.2.0-beta.9"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"ash",
|
"ash",
|
||||||
"gl",
|
"gl",
|
||||||
|
"icrate 0.1.0",
|
||||||
"librashader",
|
"librashader",
|
||||||
"librashader-spirv-cross",
|
"librashader-spirv-cross",
|
||||||
|
"objc2 0.5.0",
|
||||||
"paste",
|
"paste",
|
||||||
"rustc-hash",
|
"rustc-hash",
|
||||||
"thiserror",
|
"thiserror",
|
||||||
|
|
|
@ -21,6 +21,7 @@ runtime-opengl = ["gl", "librashader/runtime-gl"]
|
||||||
runtime-d3d11 = ["windows", "librashader/runtime-d3d11", "windows/Win32_Graphics_Direct3D11"]
|
runtime-d3d11 = ["windows", "librashader/runtime-d3d11", "windows/Win32_Graphics_Direct3D11"]
|
||||||
runtime-d3d12 = ["windows", "librashader/runtime-d3d12", "windows/Win32_Graphics_Direct3D12"]
|
runtime-d3d12 = ["windows", "librashader/runtime-d3d12", "windows/Win32_Graphics_Direct3D12"]
|
||||||
runtime-vulkan = ["ash", "librashader/runtime-vk"]
|
runtime-vulkan = ["ash", "librashader/runtime-vk"]
|
||||||
|
runtime-metal = ["icrate", "objc2", "librashader/runtime-metal"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
librashader = { path = "../librashader", version = "0.2.0-beta.9" }
|
librashader = { path = "../librashader", version = "0.2.0-beta.9" }
|
||||||
|
@ -35,6 +36,10 @@ spirv_cross = { package = "librashader-spirv-cross", version = "0.25.1" }
|
||||||
version = "0.48.0"
|
version = "0.48.0"
|
||||||
optional = true
|
optional = true
|
||||||
|
|
||||||
|
[target.'cfg(target_vendor="apple")'.dependencies]
|
||||||
|
icrate = { version = "0.1.0" , features = [ "Metal", "Metal_all" ], optional = true }
|
||||||
|
objc2 = { version = "0.5.0", features = ["apple"] , optional = true }
|
||||||
|
|
||||||
[package.metadata.docs.rs]
|
[package.metadata.docs.rs]
|
||||||
targets = ["x86_64-pc-windows-msvc", "x86_64-unknown-linux-gnu"]
|
targets = ["x86_64-pc-windows-msvc", "x86_64-unknown-linux-gnu", "x86_64-apple-darwin", "aarch64-apple-darwin", "aarch64-apple-ios"]
|
||||||
features = ["librashader/docsrs"]
|
features = ["librashader/docsrs"]
|
||||||
|
|
|
@ -114,7 +114,7 @@ config_struct! {
|
||||||
#[derive(Default, Debug, Clone)]
|
#[derive(Default, Debug, Clone)]
|
||||||
pub struct filter_chain_vk_opt_t {
|
pub struct filter_chain_vk_opt_t {
|
||||||
/// The librashader API version.
|
/// The librashader API version.
|
||||||
pub version: usize,
|
pub version: LIBRASHADER_API_VERSION,
|
||||||
/// The number of frames in flight to keep. If zero, defaults to three.
|
/// The number of frames in flight to keep. If zero, defaults to three.
|
||||||
pub frames_in_flight: u32,
|
pub frames_in_flight: u32,
|
||||||
/// Whether or not to explicitly disable mipmap generation regardless of shader preset settings.
|
/// Whether or not to explicitly disable mipmap generation regardless of shader preset settings.
|
||||||
|
|
|
@ -73,6 +73,5 @@ full = ["runtime-all", "reflect-all", "preprocess", "presets"]
|
||||||
docsrs = ["librashader-cache/docsrs"]
|
docsrs = ["librashader-cache/docsrs"]
|
||||||
|
|
||||||
[package.metadata.docs.rs]
|
[package.metadata.docs.rs]
|
||||||
targets = ["x86_64-pc-windows-msvc", "x86_64-unknown-linux-gnu",
|
targets = ["x86_64-pc-windows-msvc", "x86_64-unknown-linux-gnu", "x86_64-apple-darwin", "aarch64-apple-darwin", "aarch64-apple-ios"]
|
||||||
"x86_64-apple-darwin", "aarch64-apple-darwin", "aarch64-apple-ios"]
|
|
||||||
features = [ "librashader-cache/docsrs" ]
|
features = [ "librashader-cache/docsrs" ]
|
||||||
|
|
Loading…
Reference in a new issue