Delete unused code, fix a comment.

This commit is contained in:
Henrik Rydgård committed 2024-10-23 10:55:46 +02:00
1 parent d9a5c14b2f
commit 7e952ab795
4 files changed
+4 -17

No files matched your search

+2 -2
View File
@@ -78,7 +78,7 @@ void UIContext::Begin() {
void UIContext::BeginNoTex() {
draw_->BindSamplerStates(0, 1, &sampler_);
UIBegin(ui_pipeline_notex_);
ui_draw2d.Begin(ui_pipeline_notex_);
}
void UIContext::BeginPipeline(Draw::Pipeline *pipeline, Draw::SamplerState *samplerState) {
@@ -89,7 +89,7 @@ void UIContext::BeginPipeline(Draw::Pipeline *pipeline, Draw::SamplerState *samp
Draw::Texture *textures[2]{};
draw_->BindTextures(1, 2, textures);
RebindTexture();
UIBegin(pipeline);
ui_draw2d.Begin(pipeline);
}
void UIContext::RebindTexture() const {
-9
View File
@@ -9,12 +9,3 @@
// TODO: UI should probably not own these.
DrawBuffer ui_draw2d;
DrawBuffer ui_draw2d_front;
void UIBegin(Draw::Pipeline *pipeline) {
ui_draw2d.Begin(pipeline);
}
void UIFlush() {
ui_draw2d.Flush();
}
-6
View File
@@ -57,9 +57,3 @@ public:
private:
const std::vector<std::string> *items_;
};
// Begins/flushes the two UI drawbuffers together.
void UIBegin(Draw::Pipeline *shaderSet);
void UIFlush();
+2
View File
@@ -806,6 +806,8 @@ int DrawEngineCommon::ComputeNumVertsToDecode() const {
return sum;
}
// Takes a list of consecutive PRIM opcodes, and extends the current draw call to include them.
// This is just a performance optimization.
int DrawEngineCommon::ExtendNonIndexedPrim(const uint32_t *cmd, const uint32_t *stall, u32 vertTypeID, bool clockwise, int *bytesRead, bool isTriangle) {
const uint32_t *start = cmd;
int prevDrawVerts = numDrawVerts_ - 1;