mirror of
https://github.com/italicsjenga/vello.git
synced 2025-01-10 12:41:30 +11:00
Fix query pool size
This was causing harmless warnings on mac but causing rendering to fail on Pixel 6.
This commit is contained in:
parent
708cb3d0b8
commit
ee6694729b
|
@ -110,7 +110,7 @@ impl GfxState {
|
||||||
.map(|_| session.create_semaphore())
|
.map(|_| session.create_semaphore())
|
||||||
.collect::<Result<Vec<_>, Error>>()?;
|
.collect::<Result<Vec<_>, Error>>()?;
|
||||||
let query_pools = (0..NUM_FRAMES)
|
let query_pools = (0..NUM_FRAMES)
|
||||||
.map(|_| session.create_query_pool(8))
|
.map(|_| session.create_query_pool(12))
|
||||||
.collect::<Result<Vec<_>, Error>>()?;
|
.collect::<Result<Vec<_>, Error>>()?;
|
||||||
let submitted = Default::default();
|
let submitted = Default::default();
|
||||||
let cmd_bufs = Default::default();
|
let cmd_bufs = Default::default();
|
||||||
|
|
|
@ -232,7 +232,7 @@ fn main() -> Result<(), Error> {
|
||||||
let session = Session::new(device);
|
let session = Session::new(device);
|
||||||
|
|
||||||
let mut cmd_buf = session.cmd_buf()?;
|
let mut cmd_buf = session.cmd_buf()?;
|
||||||
let query_pool = session.create_query_pool(8)?;
|
let query_pool = session.create_query_pool(12)?;
|
||||||
|
|
||||||
let mut ctx = PietGpuRenderContext::new();
|
let mut ctx = PietGpuRenderContext::new();
|
||||||
if let Some(input) = matches.value_of("INPUT") {
|
if let Some(input) = matches.value_of("INPUT") {
|
||||||
|
|
Loading…
Reference in a new issue