1use {
2 crate::{AlphaMip, BakeInput, BakeOutput},
3 anyhow::{Result, bail},
4 std::{marker::PhantomData, path::Path},
5};
6
7pub struct AlphaTexture<'a> {
8 _baker: PhantomData<&'a Baker>,
9}
10
11pub struct Baker;
12
13impl Baker {
14 pub fn new(_library_path: &Path) -> Result<Self> {
19 bail!(
20 "native nvidia omm is unavailable; enable the nvidia-omm native feature on a supported host"
21 )
22 }
23
24 pub fn create_texture<'a>(&'a self, _mips: &[AlphaMip<'_>]) -> Result<AlphaTexture<'a>> {
29 bail!("native nvidia omm is unavailable on this build")
30 }
31
32 pub fn bake(&self, _texture: &AlphaTexture<'_>, _input: BakeInput<'_>) -> Result<BakeOutput> {
37 bail!("native nvidia omm is unavailable on this build")
38 }
39}