Permalink
Browse files

GPU: Remove some unused fields.

  • Loading branch information...
unknownbrackets committed Jun 17, 2018
1 parent 82dc4c0 commit d1fa9b97a3a89613dee63111291d74007042cb38
Showing with 4 additions and 9 deletions.
  1. +0 −1 GPU/D3D11/GPU_D3D11.h
  2. +0 −1 GPU/Directx9/GPU_DX9.h
  3. +0 −1 GPU/GLES/GPU_GLES.h
  4. +3 −3 GPU/Vulkan/DrawEngineVulkan.cpp
  5. +1 −3 GPU/Vulkan/DrawEngineVulkan.h
@@ -83,5 +83,4 @@ class GPU_D3D11 : public GPUCommon {
ShaderManagerD3D11 *shaderManagerD3D11_;
int lastVsync_;
int vertexCost_ = 0;
};
@@ -82,7 +82,6 @@ class GPU_DX9 : public GPUCommon {
ShaderManagerDX9 *shaderManagerDX9_;
int lastVsync_;
int vertexCost_ = 0;
};
} // namespace DX9
@@ -92,5 +92,4 @@ class GPU_GLES : public GPUCommon {
#ifdef _WIN32
int lastVsync_;
#endif
int vertexCost_ = 0;
};
@@ -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() {
@@ -280,7 +280,7 @@ class DrawEngineVulkan : public DrawEngineCommon {
// 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 @@ class DrawEngineVulkan : public DrawEngineCommon {
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;

0 comments on commit d1fa9b9

Please sign in to comment.