Skip to content

Instantly share code, notes, and snippets.

@Slabity
Created February 13, 2019 17:57
Show Gist options
  • Select an option

  • Save Slabity/5c7cdda29797e028679cb8da3b02201b to your computer and use it in GitHub Desktop.

Select an option

Save Slabity/5c7cdda29797e028679cb8da3b02201b to your computer and use it in GitHub Desktop.
stderr
error[E0308]: mismatched types
--> resource/src/resources.rs:66:76
|
66 | device.bind_buffer_memory(block.memory(), block.range().start, buf)
| ^^^
| |
| expected mutable reference, found associated type
| help: consider mutably borrowing here: `&mut buf`
|
= note: expected type `&mut <B as gfx_hal::Backend>::Buffer`
found type `<B as gfx_hal::Backend>::Buffer`
error[E0308]: mismatched types
--> resource/src/resources.rs:71:22
|
71 | raw: buf,
| ^^^ expected associated type, found ()
|
= note: expected type `<B as gfx_hal::Backend>::Buffer`
found type `()`
error[E0308]: mismatched types
--> resource/src/resources.rs:159:73
|
159 | .bind_image_memory(block.memory(), block.range().start, img)
| ^^^
| |
| expected mutable reference, found associated type
| help: consider mutably borrowing here: `&mut img`
|
= note: expected type `&mut <B as gfx_hal::Backend>::Image`
found type `<B as gfx_hal::Backend>::Image`
error[E0308]: mismatched types
--> resource/src/resources.rs:164:22
|
164 | raw: img,
| ^^^ expected associated type, found ()
|
= note: expected type `<B as gfx_hal::Backend>::Image`
found type `()`
error: aborting due to 4 previous errors
For more information about this error, try `rustc --explain E0308`.
error: Could not compile `rendy-resource`.
warning: build failed, waiting for other jobs to finish...
error[E0133]: call to unsafe function is unsafe and requires unsafe function or block
--> command/src/buffer/encoder.rs:229:9
|
229 | / gfx_hal::command::RawCommandBuffer::draw(
230 | | self.inner.raw,
231 | | vertices,
232 | | instances,
233 | | )
| |_________^ call to unsafe function
|
= note: consult the function's documentation for information on how to avoid undefined behavior
error[E0133]: call to unsafe function is unsafe and requires unsafe function or block
--> command/src/buffer/encoder.rs:243:9
|
243 | / gfx_hal::command::RawCommandBuffer::draw_indexed(
244 | | self.inner.raw,
245 | | indices,
246 | | base_vertex,
247 | | instances,
248 | | )
| |_________^ call to unsafe function
|
= note: consult the function's documentation for information on how to avoid undefined behavior
error[E0133]: call to unsafe function is unsafe and requires unsafe function or block
--> command/src/buffer/encoder.rs:264:9
|
264 | / gfx_hal::command::RawCommandBuffer::draw_indirect(
265 | | self.inner.raw,
266 | | buffer,
267 | | offset,
268 | | draw_count,
269 | | stride,
270 | | )
| |_________^ call to unsafe function
|
= note: consult the function's documentation for information on how to avoid undefined behavior
error: aborting due to 3 previous errors
For more information about this error, try `rustc --explain E0133`.
error: Could not compile `rendy-command`.
warning: build failed, waiting for other jobs to finish...
error: build failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment