Jeremy Pritts 3509ddd1c3 2023 support
* Resolves #917
* Resolves #1023
2023-10-14 12:27:15 -04:00

14 lines
366 B
C#

using AssetRipper.SourceGenerated.Classes.ClassID_48;
using AssetRipper.SourceGenerated.Extensions.Enums.Shader;
namespace AssetRipper.SourceGenerated.Extensions
{
public static class ShaderExtensions
{
public static IEnumerable<GPUPlatform>? GetPlatforms(this IShader shader)
{
return shader.Platforms?.Select(p => unchecked((GPUPlatform)p));
}
}
}