Remove some unused variables

This commit is contained in:
Corentin Wallez 2017-06-27 11:12:13 -04:00 committed by Corentin Wallez
parent 2dd73fbc1d
commit 5e03aec75a
2 changed files with 1 additions and 9 deletions

View File

@ -247,7 +247,6 @@ namespace wire {
private:
nxtProcTable procs;
CommandSerializer* serializer = nullptr;
bool gotError = false;
void* GetCmdSpace(size_t size) {
return serializer->GetCmdSpace(size);

View File

@ -139,8 +139,6 @@ namespace metal {
encoders.device = device;
uint32_t currentSubpass = 0;
id<MTLRenderCommandEncoder> renderEncoder = nil;
while (commands.NextCommandId(&type)) {
switch (type) {
case Command::AdvanceSubpass:
@ -313,10 +311,7 @@ namespace metal {
case Command::SetPushConstants:
{
SetPushConstantsCmd* cmd = commands.NextCommand<SetPushConstantsCmd>();
uint32_t* valuesUInt = commands.NextData<uint32_t>(cmd->count);
int32_t* valuesInt = reinterpret_cast<int32_t*>(valuesUInt);
float* valuesFloat = reinterpret_cast<float*>(valuesUInt);
commands.NextData<uint32_t>(cmd->count);
// TODO(kainino@chromium.org): implement SetPushConstants
}
break;
@ -464,8 +459,6 @@ namespace metal {
auto buffers = commands.NextData<Ref<BufferBase>>(cmd->count);
auto offsets = commands.NextData<uint32_t>(cmd->count);
auto inputState = lastPipeline->GetInputState();
std::array<id<MTLBuffer>, kMaxVertexInputs> mtlBuffers;
std::array<NSUInteger, kMaxVertexInputs> mtlOffsets;