mirror of
https://github.com/AssetRipper/AssetRipper.git
synced 2025-12-11 20:15:29 +01:00
13 lines
357 B
C#
13 lines
357 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));
|
|
}
|
|
}
|