Skip to content

Comments

Remap the allocator during replay.#1837

Merged
AWoloszyn merged 1 commit intogoogle:masterfrom
AWoloszyn:remove-allocator
Apr 27, 2018
Merged

Remap the allocator during replay.#1837
AWoloszyn merged 1 commit intogoogle:masterfrom
AWoloszyn:remove-allocator

Conversation

@AWoloszyn
Copy link
Contributor

This means we can replace pAllocator with nulltpr when
necessary.

@AWoloszyn AWoloszyn requested review from ben-clayton and qining April 25, 2018 18:35
// Vulkan 1.1 core
@replay_remap @nonDispatchHandle type u64 VkDescriptorUpdateTemplate
@replay_remap @nonDispatchHandle type u64 VkSamplerYcbcrConversion
@replay_custom_value type const VkAllocationCallbacks* AllocationCallbacks
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like you've put this under Vulkan 1.1, when this is a Vulkan 1.0 thing?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

}

func (i AllocationCallbacks) value(b *builder.Builder, cmd api.Cmd, s *api.GlobalState) value.Value {
return value.AbsolutePointer(0)
Copy link
Contributor

Choose a reason for hiding this comment

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

Please comment why you're always using a 0.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

This means we can replace pAllocator with nulltpr when
necessary.
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