Skip to content

[WIP] Update code to catch up with Dawn updates#552

Closed
sarahM0 wants to merge 1 commit intogoogle:masterfrom
sarahM0:update
Closed

[WIP] Update code to catch up with Dawn updates#552
sarahM0 wants to merge 1 commit intogoogle:masterfrom
sarahM0:update

Conversation

@sarahM0
Copy link
Contributor

@sarahM0 sarahM0 commented Jun 17, 2019

WIP: please do not review
fixes: #550

vertexInput.stepMode = ::dawn::InputStepMode::Vertex;
for (uint32_t i = 0; i < kMaxVertexInputs; ++i) {
tempInputs[i] = vertexInput;
vertexInputDescriptor = new ComboVertexInputDescriptor();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems unusual to have an allocation of this object, and then hand ownership over to the Dawn API. I guess this leaks. I would expect this to be allocated on the stack and you pass in the address to the .vertexInput member of renderPipelineDiscriptor ??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants