mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-12-25 10:52:48 -06:00
bind stage buffers
This commit is contained in:
parent
a66708e362
commit
89ff6909a9
1 changed files with 5 additions and 1 deletions
|
@ -167,14 +167,18 @@ void GraphicsPipeline::Configure(bool is_indexed) {
|
|||
const size_t& view_index{all_views[stage].view_index};
|
||||
const size_t& sampler_index{all_samplers[stage].sampler_index};
|
||||
|
||||
texture_cache.FillGraphicsImageViews<true>(std::span(views.data(), view_index));
|
||||
// Buffers
|
||||
buffer_cache.BindHostStageBuffers(stage);
|
||||
|
||||
// Textures
|
||||
texture_cache.FillGraphicsImageViews<true>(std::span(views.data(), view_index));
|
||||
for (u8 i = 0; i < view_index; i++) {
|
||||
const VideoCommon::ImageViewInOut& view{views[i]};
|
||||
ImageView& image_view{texture_cache.GetImageView(view.id)};
|
||||
command_recorder.SetTexture(stage, image_view.GetHandle(), i);
|
||||
}
|
||||
|
||||
// Samplers
|
||||
for (u8 i = 0; i < sampler_index; i++) {
|
||||
const VideoCommon::SamplerId& sampler_id{samplers[i]};
|
||||
Sampler& sampler{texture_cache.GetSampler(sampler_id)};
|
||||
|
|
Loading…
Reference in a new issue