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:
Elias Naur 2021-03-15 13:23:02 +01:00
parent eaa714644e
commit fd746ea7a6

View file

@ -222,8 +222,9 @@ impl Renderer {
let state_buf = session.create_buffer(1 * 1024 * 1024, 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)?;
let config_buf_dev = session.create_buffer(9*4, dev)?;
const CONFIG_SIZE: u64 = 9*4; // Size of Config in setup.h.
let mut config_buf_host = session.create_buffer(CONFIG_SIZE, host)?;
let config_buf_dev = session.create_buffer(CONFIG_SIZE, dev)?;
// TODO: constants
const PATH_SIZE: usize = 12;