Make nxt::TextureBase::GetDevice const

Because it is.
This commit is contained in:
Corentin Wallez 2018-01-03 08:46:51 -08:00 committed by Corentin Wallez
parent 160abad592
commit f11396767f
2 changed files with 2 additions and 2 deletions

View File

@ -85,7 +85,7 @@ namespace backend {
mCurrentUsage(builder->mCurrentUsage) {
}
DeviceBase* TextureBase::GetDevice() {
DeviceBase* TextureBase::GetDevice() const {
return mDevice;
}

View File

@ -46,7 +46,7 @@ namespace backend {
bool IsTransitionPossible(nxt::TextureUsageBit usage) const;
void UpdateUsageInternal(nxt::TextureUsageBit usage);
DeviceBase* GetDevice();
DeviceBase* GetDevice() const;
// NXT API
TextureViewBuilder* CreateTextureViewBuilder();