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

Function HasAlpha

Source/Engine/Graphics/PixelFormatExtensions.h:50–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48 /// <param name="format">The Pixel Format.</param>
49 /// <returns><c>true</c> if the specified <see cref="PixelFormat"/> has alpha; otherwise, <c>false</c>.</returns>
50 API_FUNCTION() FORCE_INLINE static bool HasAlpha(const PixelFormat format)
51 {
52 return AlphaSizeInBits(format) != 0;
53 }
54
55 /// <summary>
56 /// Determines whether the specified <see cref="PixelFormat"/> is depth stencil.

Callers 6

ConvertAstcMethod · 0.85
ImportTextureStbMethod · 0.85
ImportMaterialsFunction · 0.85
AddMaterialMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected