mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-18 17:35:30 +00:00
Rename Buffer::IsMapWritable to Buffer::IsMappableAtCreation
Renaming method to better reflect the actual usage. Bug: none Change-Id: I3fcdeffaa06fceae9d5818f79c3b7985fb1885ad Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/24701 Reviewed-by: Bryan Bernhart <bryan.bernhart@intel.com> Reviewed-by: Austin Eng <enga@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
eafdef3818
commit
b9285f69ba
@@ -92,7 +92,7 @@ namespace dawn_native { namespace opengl {
|
||||
SetIsDataInitialized();
|
||||
}
|
||||
|
||||
bool Buffer::IsMapWritable() const {
|
||||
bool Buffer::IsMappableAtCreation() const {
|
||||
// TODO(enga): All buffers in GL can be mapped. Investigate if mapping them will cause the
|
||||
// driver to migrate it to shared memory.
|
||||
return true;
|
||||
|
||||
@@ -40,7 +40,7 @@ namespace dawn_native { namespace opengl {
|
||||
void UnmapImpl() override;
|
||||
void DestroyImpl() override;
|
||||
|
||||
bool IsMapWritable() const override;
|
||||
bool IsMappableAtCreation() const override;
|
||||
MaybeError MapAtCreationImpl() override;
|
||||
void* GetMappedPointerImpl() override;
|
||||
uint64_t GetAppliedSize() const;
|
||||
|
||||
Reference in New Issue
Block a user