mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-23 23:13:46 +00:00
Remove some unused variables
This commit is contained in:
parent
2dd73fbc1d
commit
5e03aec75a
@ -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);
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user