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: private:
nxtProcTable procs; nxtProcTable procs;
CommandSerializer* serializer = nullptr; CommandSerializer* serializer = nullptr;
bool gotError = false;
void* GetCmdSpace(size_t size) { void* GetCmdSpace(size_t size) {
return serializer->GetCmdSpace(size); return serializer->GetCmdSpace(size);

View File

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