mirror of
https://github.com/AssetRipper/AssetRipper.git
synced 2025-12-11 20:15:29 +01:00
- Bump `Microsoft.NET.Test.Sdk` to version `17.14.0` in several test projects. - Upgrade `NUnit.Analyzers` to version `4.8.1` in multiple test projects. - Update `AssetRipper.ICSharpCode.Decompiler` to version `9.1.0.8002` in several project files. - Change `Swashbuckle.AspNetCore` version to `8.1.2` in `AssetRipper.GUI.Web.csproj`. - Upgrade `AssetRipper.SourceGenerated` to version `1.2.4` in `AssetRipper.SourceGenerated.Extensions.csproj`. - Resolves #1798
17 lines
1.1 KiB
C#
17 lines
1.1 KiB
C#
using AssetRipper.SourceGenerated.Extensions.Enums.Shader.SerializedShader;
|
|
using AssetRipper.SourceGenerated.Subclasses.SerializedShaderRTBlendState;
|
|
|
|
namespace AssetRipper.SourceGenerated.Extensions
|
|
{
|
|
public static class SerializedShaderRTBlendStateExtensions
|
|
{
|
|
public static BlendMode SrcBlendValue(this ISerializedShaderRTBlendState state) => (BlendMode)state.SourceBlend.Val;
|
|
public static BlendMode DestBlendValue(this ISerializedShaderRTBlendState state) => (BlendMode)state.DestinationBlend.Val;
|
|
public static BlendMode SrcBlendAlphaValue(this ISerializedShaderRTBlendState state) => (BlendMode)state.SourceBlendAlpha.Val;
|
|
public static BlendMode DestBlendAlphaValue(this ISerializedShaderRTBlendState state) => (BlendMode)state.DestinationBlendAlpha.Val;
|
|
public static BlendOp BlendOpValue(this ISerializedShaderRTBlendState state) => (BlendOp)state.BlendOp.Val;
|
|
public static BlendOp BlendOpAlphaValue(this ISerializedShaderRTBlendState state) => (BlendOp)state.BlendOpAlpha.Val;
|
|
public static ColorWriteMask ColMaskValue(this ISerializedShaderRTBlendState state) => (ColorWriteMask)state.ColMask.Val;
|
|
}
|
|
}
|