tweakin
This commit is contained in:
parent
5a2229728a
commit
00c487f439
|
@ -480,10 +480,10 @@ impl CacaoWindow {
|
||||||
|
|
||||||
fn display(&mut self, buffer: Vec<[u8; 4]>) {
|
fn display(&mut self, buffer: Vec<[u8; 4]>) {
|
||||||
if let Some(backend) = self.backend.as_mut() {
|
if let Some(backend) = self.backend.as_mut() {
|
||||||
|
backend.new_frame(&buffer).some_or_print();
|
||||||
backend
|
backend
|
||||||
.render(self.resolutions, &self.backend_manager)
|
.render(self.resolutions, &self.backend_manager)
|
||||||
.some_or_print();
|
.some_or_print();
|
||||||
backend.new_frame(&buffer).some_or_print();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -96,6 +96,7 @@ impl RendererBackend for WgpuBackend {
|
||||||
None,
|
None,
|
||||||
))?;
|
))?;
|
||||||
let (device, queue) = (Arc::new(device), Arc::new(queue));
|
let (device, queue) = (Arc::new(device), Arc::new(queue));
|
||||||
|
|
||||||
let capabilities = surface.get_capabilities(&adapter);
|
let capabilities = surface.get_capabilities(&adapter);
|
||||||
let format = capabilities
|
let format = capabilities
|
||||||
.formats
|
.formats
|
||||||
|
@ -107,6 +108,8 @@ impl RendererBackend for WgpuBackend {
|
||||||
.first()
|
.first()
|
||||||
.ok_or(Self::RendererError::NoTextureFormat)?;
|
.ok_or(Self::RendererError::NoTextureFormat)?;
|
||||||
|
|
||||||
|
surface.configure(&device, &resolutions.get_config(format, alpha_mode));
|
||||||
|
|
||||||
let filter_chain = {
|
let filter_chain = {
|
||||||
let filter_chain_options = FilterChainOptions {
|
let filter_chain_options = FilterChainOptions {
|
||||||
force_no_mipmaps: false,
|
force_no_mipmaps: false,
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
cargo xtask bundle-universal twinc_emu_vst &&
|
cargo xtask bundle-universal twinc_emu_vst &&
|
||||||
python scripts/mac/patch.py target/bundled/twinc_emu_vst.vst3 &&
|
# python scripts/mac/patch.py target/bundled/twinc_emu_vst.vst3 &&
|
||||||
rm -rf $VST3_DEV_INSTALL/twinc_emu_vst.vst3 &&
|
rm -rf $VST3_DEV_INSTALL/twinc_emu_vst.vst3 &&
|
||||||
cp -r target/bundled/twinc_emu_vst.vst3 $VST3_DEV_INSTALL/twinc_emu_vst.vst3 &&
|
cp -r target/bundled/twinc_emu_vst.vst3 $VST3_DEV_INSTALL/twinc_emu_vst.vst3 &&
|
||||||
echo "Copied to $VST3_DEV_INSTALL/twinc_emu_vst.vst3"
|
echo "Copied to $VST3_DEV_INSTALL/twinc_emu_vst.vst3"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
cargo xtask bundle-universal twinc_emu_vst --release &&
|
cargo xtask bundle-universal twinc_emu_vst --release &&
|
||||||
python scripts/mac/patch.py target/bundled/twinc_emu_vst.vst3 &&
|
# python scripts/mac/patch.py target/bundled/twinc_emu_vst.vst3 &&
|
||||||
rm -rf $VST3_DEV_INSTALL/twinc_emu_vst.vst3 &&
|
rm -rf $VST3_DEV_INSTALL/twinc_emu_vst.vst3 &&
|
||||||
cp -r target/bundled/twinc_emu_vst.vst3 $VST3_DEV_INSTALL/twinc_emu_vst.vst3 &&
|
cp -r target/bundled/twinc_emu_vst.vst3 $VST3_DEV_INSTALL/twinc_emu_vst.vst3 &&
|
||||||
echo "Copied to $VST3_DEV_INSTALL/twinc_emu_vst.vst3"
|
echo "Copied to $VST3_DEV_INSTALL/twinc_emu_vst.vst3"
|
||||||
|
|
Loading…
Reference in a new issue