Rename and tweak D2D1PixelOptions type
このコミットが含まれているのは:
1 親
a70ae6af38
コミット
ec1798cbe3
9ファイル変更
+25
-22
検索条件に一致するファイルはありません
@@ -85,12 +85,12 @@ public static class D2D1PixelShader
|
||||
/// </summary>
|
||||
/// <typeparam name="T">The type of D2D1 pixel shader to get the pixel options for.</typeparam>
|
||||
/// <returns>The pixel options for the D2D1 pixel shader of type <typeparamref name="T"/>.</returns>
|
||||
public static D2D1PixelOption GetPixelOptions<T>()
|
||||
public static D2D1PixelOptions GetPixelOptions<T>()
|
||||
where T : unmanaged, ID2D1PixelShader
|
||||
{
|
||||
Unsafe.SkipInit(out T shader);
|
||||
|
||||
return (D2D1PixelOption)shader.GetPixelOptions();
|
||||
return (D2D1PixelOptions)shader.GetPixelOptions();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -67,7 +67,7 @@ internal unsafe partial struct PixelShaderEffect
|
||||
/// <summary>
|
||||
/// The pixel options for the shader.
|
||||
/// </summary>
|
||||
private static D2D1PixelOption pixelOptions;
|
||||
private static D2D1PixelOptions pixelOptions;
|
||||
|
||||
/// <summary>
|
||||
/// The shader bytecode.
|
||||
@@ -124,7 +124,7 @@ internal unsafe partial struct PixelShaderEffect
|
||||
byte* bytecode = (byte*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(For<T>), bytecodeSize);
|
||||
D2D1BufferPrecision bufferPrecision = D2D1PixelShader.GetOutputBufferPrecision<T>();
|
||||
D2D1ChannelDepth channelDepth = D2D1PixelShader.GetOutputBufferChannelDepth<T>();
|
||||
D2D1PixelOption pixelOptions = D2D1PixelShader.GetPixelOptions<T>();
|
||||
D2D1PixelOptions pixelOptions = D2D1PixelShader.GetPixelOptions<T>();
|
||||
|
||||
// Prepare the inputs info
|
||||
int inputCount = D2D1PixelShader.GetInputCount<T>();
|
||||
|
||||
@@ -178,7 +178,7 @@ internal unsafe partial struct PixelShaderEffect
|
||||
/// <summary>
|
||||
/// The pixel options for the shader.
|
||||
/// </summary>
|
||||
private D2D1PixelOption pixelOptions;
|
||||
private D2D1PixelOptions pixelOptions;
|
||||
|
||||
/// <summary>
|
||||
/// The shader bytecode.
|
||||
@@ -232,7 +232,7 @@ internal unsafe partial struct PixelShaderEffect
|
||||
D2D1PixelShaderInputType* inputTypes,
|
||||
int inputDescriptionCount,
|
||||
D2D1InputDescription* inputDescriptions,
|
||||
D2D1PixelOption pixelOptions,
|
||||
D2D1PixelOptions pixelOptions,
|
||||
byte* bytecode,
|
||||
int bytecodeSize,
|
||||
D2D1BufferPrecision bufferPrecision,
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする