mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-21 10:49:14 +00:00
Capitalize C types dawn -> Dawn
This is to match Chromium style. Change-Id: Ic97cc03e2291c653ade9662ba3d5e629872b10ad Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/5482 Reviewed-by: Kai Ninomiya <kainino@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Austin Eng <enga@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
97ffc1a8aa
commit
45f9730855
@@ -45,8 +45,8 @@ namespace dawn_native {
|
||||
return DAWN_VALIDATION_ERROR("Null implementation for the swapchain");
|
||||
}
|
||||
|
||||
dawnSwapChainImplementation* impl =
|
||||
reinterpret_cast<dawnSwapChainImplementation*>(descriptor->implementation);
|
||||
DawnSwapChainImplementation* impl =
|
||||
reinterpret_cast<DawnSwapChainImplementation*>(descriptor->implementation);
|
||||
|
||||
if (!impl->Init || !impl->Destroy || !impl->Configure || !impl->GetNextTexture ||
|
||||
!impl->Present) {
|
||||
@@ -61,7 +61,7 @@ namespace dawn_native {
|
||||
SwapChainBase::SwapChainBase(DeviceBase* device, const SwapChainDescriptor* descriptor)
|
||||
: ObjectBase(device),
|
||||
mImplementation(
|
||||
*reinterpret_cast<dawnSwapChainImplementation*>(descriptor->implementation)) {
|
||||
*reinterpret_cast<DawnSwapChainImplementation*>(descriptor->implementation)) {
|
||||
}
|
||||
|
||||
SwapChainBase::SwapChainBase(DeviceBase* device, ObjectBase::ErrorTag tag)
|
||||
@@ -95,8 +95,8 @@ namespace dawn_native {
|
||||
mAllowedUsage = allowedUsage;
|
||||
mWidth = width;
|
||||
mHeight = height;
|
||||
mImplementation.Configure(mImplementation.userData, static_cast<dawnTextureFormat>(format),
|
||||
static_cast<dawnTextureUsageBit>(allowedUsage), width, height);
|
||||
mImplementation.Configure(mImplementation.userData, static_cast<DawnTextureFormat>(format),
|
||||
static_cast<DawnTextureUsageBit>(allowedUsage), width, height);
|
||||
}
|
||||
|
||||
TextureBase* SwapChainBase::GetNextTexture() {
|
||||
@@ -132,7 +132,7 @@ namespace dawn_native {
|
||||
mImplementation.Present(mImplementation.userData);
|
||||
}
|
||||
|
||||
const dawnSwapChainImplementation& SwapChainBase::GetImplementation() {
|
||||
const DawnSwapChainImplementation& SwapChainBase::GetImplementation() {
|
||||
ASSERT(!IsError());
|
||||
return mImplementation;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user