MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / GetResourceType

Method GetResourceType

Source/Engine/Graphics/Textures/GPUTexture.cpp:619–626  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

617}
618
619GPUResourceType GPUTexture::GetResourceType() const
620{
621 if (IsVolume())
622 return GPUResourceType::VolumeTexture;
623 if (IsCubeMap())
624 return GPUResourceType::CubeTexture;
625 return IsRegularTexture() ? GPUResourceType::Texture : GPUResourceType::RenderTarget;
626}
627
628void GPUTexture::OnReleaseGPU()
629{

Callers

nothing calls this directly

Calls 3

IsRegularTextureFunction · 0.85
IsVolumeFunction · 0.70
IsCubeMapFunction · 0.70

Tested by

no test coverage detected