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

Function IsRegularTexture

Source/Engine/Graphics/Textures/GPUTexture.h:280–283  ·  view source on GitHub ↗

Checks if texture is normal texture asset (not render target or unordered access or depth buffer or sth else).

Source from the content-addressed store, hash-verified

278 /// Checks if texture is normal texture asset (not render target or unordered access or depth buffer or sth else).
279 /// </summary>
280 FORCE_INLINE bool IsRegularTexture() const
281 {
282 return _desc.Flags == GPUTextureFlags::ShaderResource;
283 }
284
285 /// <summary>
286 /// Checks if texture is a staging buffer (supports direct CPU access).

Callers 7

InitMethod · 0.85
GetResourceTypeMethod · 0.85
SetResidentMipLevelsMethod · 0.85
OnInitMethod · 0.85
OnInitMethod · 0.85
OnInitMethod · 0.85
OnInitMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected