mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-23 15:03:43 +00:00
Remove some unused variables
This commit is contained in:
parent
2dd73fbc1d
commit
5e03aec75a
@ -247,7 +247,6 @@ namespace wire {
|
||||
private:
|
||||
nxtProcTable procs;
|
||||
CommandSerializer* serializer = nullptr;
|
||||
bool gotError = false;
|
||||
|
||||
void* GetCmdSpace(size_t size) {
|
||||
return serializer->GetCmdSpace(size);
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user