DrawError::InvalidViewQuery
with RenderCommand::ViewQuery = ()
#17003
-
I have this very simple RenderCommand: struct SetTilemapBindGroup<const I: usize>;
impl<P: PhaseItem, const I: usize> RenderCommand<P> for SetTilemapBindGroup<I> {
type Param = ();
type ViewQuery = ();
type ItemQuery = Read<PreparedTile>;
#[inline]
fn render<'w>(
_item: &P,
_view: (),
prepared_tile: Option<&'w PreparedTile>,
_: SystemParamItem<'w, '_, Self::Param>,
pass: &mut TrackedRenderPass<'w>,
) -> RenderCommandResult {
let Some(prepared_tile) = prepared_tile else {
return RenderCommandResult::Skip;
};
pass.set_bind_group(I, &prepared_tile.bind_group, &[]);
RenderCommandResult::Success
}
} it's telling me I have an
What am I doing wrong here or is this a bug? Let me know if you need more info. |
Beta Was this translation helpful? Give feedback.
Answered by
ThePuzzlemaker
Dec 28, 2024
Replies: 1 comment
-
wait I'm an idiot, I was using the 3d SetMeshBindGroup/SetMeshViewBindGroup/DrawMesh instead of the 2d equivalents |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ThePuzzlemaker
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
wait I'm an idiot, I was using the 3d SetMeshBindGroup/SetMeshViewBindGroup/DrawMesh instead of the 2d equivalents