GPU: Remove some unused fields.

This commit is contained in:
Unknown W. Brackets 2018-06-17 11:21:58 -07:00
parent 82dc4c0b72
commit d1fa9b97a3
5 changed files with 4 additions and 9 deletions

View File

@ -83,5 +83,4 @@ private:
ShaderManagerD3D11 *shaderManagerD3D11_;
int lastVsync_;
int vertexCost_ = 0;
};

View File

@ -82,7 +82,6 @@ private:
ShaderManagerDX9 *shaderManagerDX9_;
int lastVsync_;
int vertexCost_ = 0;
};
} // namespace DX9

View File

@ -92,5 +92,4 @@ private:
#ifdef _WIN32
int lastVsync_;
#endif
int vertexCost_ = 0;
};

View File

@ -167,7 +167,7 @@ void DrawEngineVulkan::InitDeviceObjects() {
vertexCache_ = new VulkanPushBuffer(vulkan_, VERTEX_CACHE_SIZE);
tessDataTransfer = new TessellationDataTransferVulkan(vulkan_, draw_);
tessDataTransfer = new TessellationDataTransferVulkan(vulkan_);
}
DrawEngineVulkan::~DrawEngineVulkan() {
@ -994,8 +994,8 @@ void DrawEngineVulkan::UpdateUBOs(FrameData *frame) {
}
}
DrawEngineVulkan::TessellationDataTransferVulkan::TessellationDataTransferVulkan(VulkanContext *vulkan, Draw::DrawContext *draw)
: TessellationDataTransfer(), vulkan_(vulkan), draw_(draw) {
DrawEngineVulkan::TessellationDataTransferVulkan::TessellationDataTransferVulkan(VulkanContext *vulkan)
: TessellationDataTransfer(), vulkan_(vulkan) {
}
DrawEngineVulkan::TessellationDataTransferVulkan::~TessellationDataTransferVulkan() {

View File

@ -280,7 +280,7 @@ private:
// Hardware tessellation
class TessellationDataTransferVulkan : public TessellationDataTransfer {
public:
TessellationDataTransferVulkan(VulkanContext *vulkan, Draw::DrawContext *draw);
TessellationDataTransferVulkan(VulkanContext *vulkan);
~TessellationDataTransferVulkan();
void SetPushBuffer(VulkanPushBuffer *push) { push_ = push; }
@ -299,10 +299,8 @@ private:
private:
VulkanContext *vulkan_;
Draw::DrawContext *draw_;
VulkanPushBuffer *push_; // Updated each frame.
int size_ = 0;
uint32_t offset_ = 0;
uint32_t range_ = 0;
VkBuffer buf_ = VK_NULL_HANDLE;