Skip to content

GetMappedRange on READ-mapped buffer #194

@kainino0x

Description

@kainino0x

When a buffer is mapped for READ, GetConstMappedRange must be used to get a pointer. What happens if you use GetMappedRange? Dawn currently returns nullptr, but I think perhaps it should be invalid (e.g. crash on assertion in debug mode), for debuggability.

https://matrix.to/#/!ZSOHTEPDbwuEgSJwYw:matrix.org/$LHAITjEUC-TmB-YZ1des5TeUBO-FFRIvnZRfgfgbSZg?via=matrix.org

Metadata

Metadata

Assignees

No one assigned

    Labels

    has resolutionIssue is resolved, just needs to be done

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions