mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-23 05:19:18 +01:00
Expose active pipeline for access by Maxwell3D class
This commit is contained in:
parent
6e22373b59
commit
ad0275dbef
@ -376,6 +376,10 @@ namespace skyline::gpu::interconnect::maxwell3d {
|
||||
updateFunc(stencilValues);
|
||||
}
|
||||
|
||||
Pipeline *ActiveState::GetPipeline() {
|
||||
return pipeline.Get().pipeline;
|
||||
}
|
||||
|
||||
std::shared_ptr<TextureView> ActiveState::GetColorRenderTargetForClear(InterconnectContext &ctx, size_t index) {
|
||||
return pipeline.Get().GetColorRenderTargetForClear(ctx, index);
|
||||
}
|
||||
|
@ -256,6 +256,8 @@ namespace skyline::gpu::interconnect::maxwell3d {
|
||||
*/
|
||||
void Update(InterconnectContext &ctx, StateUpdateBuilder &builder, bool indexed, engine::DrawTopology topology, u32 drawElementCount);
|
||||
|
||||
Pipeline *GetPipeline();
|
||||
|
||||
std::shared_ptr<TextureView> GetColorRenderTargetForClear(InterconnectContext &ctx, size_t index);
|
||||
|
||||
std::shared_ptr<TextureView> GetDepthRenderTargetForClear(InterconnectContext &ctx);
|
||||
|
@ -290,7 +290,6 @@ namespace skyline::gpu::interconnect::maxwell3d {
|
||||
|
||||
private:
|
||||
PipelineManager pipelineManager{};
|
||||
Pipeline *pipeline{};
|
||||
|
||||
PackedPipelineState packedState{};
|
||||
|
||||
@ -308,6 +307,7 @@ namespace skyline::gpu::interconnect::maxwell3d {
|
||||
|
||||
public:
|
||||
DirectPipelineState directState;
|
||||
Pipeline *pipeline{};
|
||||
|
||||
PipelineState(dirty::Handle dirtyHandle, DirtyManager &manager, const EngineRegisters &engine);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user