mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-22 19:00:14 -05:00
metal: test buffer creation
This commit is contained in:
parent
b3e8d8d11f
commit
bc25c8831d
1 changed files with 7 additions and 0 deletions
|
@ -60,6 +60,10 @@ void RasterizerMetal::Draw(bool is_indexed, u32 instance_count) {
|
||||||
// cmdbuf.Draw(draw_params.num_vertices, draw_params.num_instances,
|
// cmdbuf.Draw(draw_params.num_vertices, draw_params.num_instances,
|
||||||
// draw_params.base_vertex, draw_params.base_instance);
|
// draw_params.base_vertex, draw_params.base_instance);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// HACK: test is buffers are being correctly created
|
||||||
|
buffer_cache.UpdateGraphicsBuffers(is_indexed);
|
||||||
|
buffer_cache.BindHostGeometryBuffers(is_indexed);
|
||||||
}
|
}
|
||||||
|
|
||||||
void RasterizerMetal::DrawTexture() {
|
void RasterizerMetal::DrawTexture() {
|
||||||
|
@ -238,6 +242,7 @@ void RasterizerMetal::InitializeChannel(Tegra::Control::ChannelState& channel) {
|
||||||
LOG_DEBUG(Render_Metal, "called");
|
LOG_DEBUG(Render_Metal, "called");
|
||||||
|
|
||||||
CreateChannel(channel);
|
CreateChannel(channel);
|
||||||
|
buffer_cache.CreateChannel(channel);
|
||||||
texture_cache.CreateChannel(channel);
|
texture_cache.CreateChannel(channel);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -245,6 +250,7 @@ void RasterizerMetal::BindChannel(Tegra::Control::ChannelState& channel) {
|
||||||
LOG_DEBUG(Render_Metal, "called");
|
LOG_DEBUG(Render_Metal, "called");
|
||||||
|
|
||||||
BindToChannel(channel.bind_id);
|
BindToChannel(channel.bind_id);
|
||||||
|
buffer_cache.BindToChannel(channel.bind_id);
|
||||||
texture_cache.BindToChannel(channel.bind_id);
|
texture_cache.BindToChannel(channel.bind_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -252,6 +258,7 @@ void RasterizerMetal::ReleaseChannel(s32 channel_id) {
|
||||||
LOG_DEBUG(Render_Metal, "called");
|
LOG_DEBUG(Render_Metal, "called");
|
||||||
|
|
||||||
EraseChannel(channel_id);
|
EraseChannel(channel_id);
|
||||||
|
buffer_cache.EraseChannel(channel_id);
|
||||||
texture_cache.EraseChannel(channel_id);
|
texture_cache.EraseChannel(channel_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue