mirror of
https://github.com/italicsjenga/vello.git
synced 2025-01-10 20:51:29 +11:00
name and comment magic constant
Follow-up to review of PR #61. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
parent
eaa714644e
commit
fd746ea7a6
|
@ -222,8 +222,9 @@ impl Renderer {
|
||||||
let state_buf = session.create_buffer(1 * 1024 * 1024, dev)?;
|
let state_buf = session.create_buffer(1 * 1024 * 1024, dev)?;
|
||||||
let image_dev = session.create_image2d(WIDTH as u32, HEIGHT as u32, dev)?;
|
let image_dev = session.create_image2d(WIDTH as u32, HEIGHT as u32, dev)?;
|
||||||
|
|
||||||
let mut config_buf_host = session.create_buffer(9*4, host)?;
|
const CONFIG_SIZE: u64 = 9*4; // Size of Config in setup.h.
|
||||||
let config_buf_dev = session.create_buffer(9*4, dev)?;
|
let mut config_buf_host = session.create_buffer(CONFIG_SIZE, host)?;
|
||||||
|
let config_buf_dev = session.create_buffer(CONFIG_SIZE, dev)?;
|
||||||
|
|
||||||
// TODO: constants
|
// TODO: constants
|
||||||
const PATH_SIZE: usize = 12;
|
const PATH_SIZE: usize = 12;
|
||||||
|
|
Loading…
Reference in a new issue