fsr-rs
fsr-rs copied to clipboard
Tests fail
$ cargo test
---- fsr/src/lib.rs - (line 5) stdout ----
error: expected one of `!`, `,`, `.`, `::`, `?`, `{`, `}`, or an operator, found `message_callback`
--> fsr/src/lib.rs:25:5
|
17 | let context_desc = fsr::ContextDescription {
| ----------------------- while parsing this struct
...
22 | flags: fsr::InitializationFlagBits::ENABLE_HIGH_DYNAMIC_RANGE
| -
| |
| expected one of 8 possible tokens
| help: try adding a comma: `,`
23 | message_callback: None,
| ^^^^^^^^^^^^^^^^ unexpected token
error[E0433]: failed to resolve: could not find `vk` in `fsr`
--> fsr/src/lib.rs:10:20
|
8 | vec![0u8; fsr::vk::get_scratch_memory_size(&vk_instance, vk_physical_device)];
| ^^ could not find `vk` in `fsr`
error[E0433]: failed to resolve: could not find `vk` in `fsr`
--> fsr/src/lib.rs:11:22
|
9 | let interface = fsr::vk::get_interface(
| ^^ could not find `vk` in `fsr`
error[E0433]: failed to resolve: could not find `vk` in `fsr`
--> fsr/src/lib.rs:21:19
|
19 | device: &fsr::vk::get_device(vk_device),
| ^^ could not find `vk` in `fsr`
error[E0425]: cannot find value `vk_instance` in this scope
--> fsr/src/lib.rs:10:49
|
8 | vec![0u8; fsr::vk::get_scratch_memory_size(&vk_instance, vk_physical_device)];
| ^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value `vk_physical_device` in this scope
--> fsr/src/lib.rs:10:62
|
8 | vec![0u8; fsr::vk::get_scratch_memory_size(&vk_instance, vk_physical_device)];
| ^^^^^^^^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value `vk_entry` in this scope
--> fsr/src/lib.rs:12:6
|
10 | &vk_entry,
| ^^^^^^^^ not found in this scope
error[E0425]: cannot find value `vk_instance` in this scope
--> fsr/src/lib.rs:13:6
|
11 | &vk_instance,
| ^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value `vk_physical_device` in this scope
--> fsr/src/lib.rs:14:5
|
12 | vk_physical_device,
| ^^^^^^^^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value `fsr_interface` in this scope
--> fsr/src/lib.rs:20:17
|
18 | interface: &fsr_interface,
| ^^^^^^^^^^^^^ help: a local variable with a similar name exists: `interface`
error[E0425]: cannot find value `vk_device` in this scope
--> fsr/src/lib.rs:21:34
|
19 | device: &fsr::vk::get_device(vk_device),
| ^^^^^^^^^ not found in this scope
error[E0425]: cannot find value `vk_command_list` in this scope
--> fsr/src/lib.rs:31:5
|
29 | vk_command_list.into(),
| ^^^^^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value `color` in this scope
--> fsr/src/lib.rs:32:5
|
30 | color,
| ^^^^^ not found in this scope
error[E0425]: cannot find value `depth` in this scope
--> fsr/src/lib.rs:33:5
|
31 | depth,
| ^^^^^ not found in this scope
error[E0425]: cannot find value `velocity` in this scope
--> fsr/src/lib.rs:34:5
|
32 | velocity,
| ^^^^^^^^ not found in this scope
error[E0425]: cannot find value `output` in this scope
--> fsr/src/lib.rs:35:5
|
33 | output,
| ^^^^^^ not found in this scope
error[E0425]: cannot find value `delta_time_s` in this scope
--> fsr/src/lib.rs:36:5
|
34 | delta_time_s,
| ^^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value `fsr_context` in this scope
--> fsr/src/lib.rs:39:1
|
37 | fsr_context.dispatch(desc).expect("Failed to dispatch fsr");
| ^^^^^^^^^^^ not found in this scope
error[E0063]: missing field `message_callback` in initializer of `ContextDescription<'_>`
--> fsr/src/lib.rs:19:20
|
17 | let context_desc = fsr::ContextDescription {
| ^^^^^^^^^^^^^^^^^^^^^^^ missing `message_callback`
error: aborting due to 19 previous errors
Some errors have detailed explanations: E0063, E0425, E0433.
For more information about an error, try `rustc --explain E0063`.
Couldn't compile the test.
failures:
fsr/src/lib.rs - (line 5)
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.03s