You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The argument-buffer and the bindless examples currently pass an empty RenderPassDescriptor to CommandBuffer::new_render_command_encoder, which causes the function to return NULL (instead of an actual render command encoder object).
This in turn means that all the code following it basically does nothing (as it sends messages to a NULL value, which Objective-C just ignores).
To very clearly see how this is unsound and confusing, try putting the following statement after new_render_command_encoder:
let encoder = Some(encoder).unwrap();
The text was updated successfully, but these errors were encountered:
Found while working on #241.
The
argument-buffer
and thebindless
examples currently pass an emptyRenderPassDescriptor
toCommandBuffer::new_render_command_encoder
, which causes the function to return NULL (instead of an actual render command encoder object).This in turn means that all the code following it basically does nothing (as it sends messages to a NULL value, which Objective-C just ignores).
To very clearly see how this is unsound and confusing, try putting the following statement after
new_render_command_encoder
:The text was updated successfully, but these errors were encountered: