Remove leftover nested namespace blocks

このコミットが含まれているのは:
Sergio Pedri committed 2021-11-21 13:24:02 +01:00
1 親 a7e3213fd8
コミット c6252ee1c9
2ファイル変更
+38 -40

検索条件に一致するファイルはありません

+19 -20
ファイルの表示
@@ -1,28 +1,27 @@
namespace ComputeSharp.SwapChain.Shaders
namespace ComputeSharp.SwapChain.Shaders;
/// <summary>
/// A simple shader to get started with based on shadertoy new shader template.
/// Ported from <see href="https://www.shadertoy.com/new"/>.
/// </summary>
[AutoConstructor]
internal readonly partial struct HelloWorld : IPixelShader<float4>
{
/// <summary>
/// A simple shader to get started with based on shadertoy new shader template.
/// Ported from <see href="https://www.shadertoy.com/new"/>.
/// The current time since the start of the application.
/// </summary>
[AutoConstructor]
internal readonly partial struct HelloWorld : IPixelShader<float4>
public readonly float time;
/// <inheritdoc/>
public float4 Execute()
{
/// <summary>
/// The current time since the start of the application.
/// </summary>
public readonly float time;
// Normalized screen space UV coordinates from 0.0 to 1.0
float2 uv = ThreadIds.Normalized.XY;
/// <inheritdoc/>
public float4 Execute()
{
// Normalized screen space UV coordinates from 0.0 to 1.0
float2 uv = ThreadIds.Normalized.XY;
// Time varying pixel color
float3 col = 0.5f + 0.5f * Hlsl.Cos(time + new float3(uv, uv.X) + new float3(0, 2, 4));
// Time varying pixel color
float3 col = 0.5f + 0.5f * Hlsl.Cos(time + new float3(uv, uv.X) + new float3(0, 2, 4));
// Output to screen
return new(col, 1f);
}
// Output to screen
return new(col, 1f);
}
}
+19 -20
ファイルの表示
@@ -1,28 +1,27 @@
namespace ComputeSharp.SwapChain.Shaders.Compute
namespace ComputeSharp.SwapChain.Shaders.Compute;
/// <summary>
/// A simple shader to get started with based on shadertoy new shader template.
/// Ported from <see href="https://www.shadertoy.com/new"/>.
/// </summary>
[AutoConstructor]
internal readonly partial struct HelloWorld : IPixelShader<float4>
{
/// <summary>
/// A simple shader to get started with based on shadertoy new shader template.
/// Ported from <see href="https://www.shadertoy.com/new"/>.
/// The current time since the start of the application.
/// </summary>
[AutoConstructor]
internal readonly partial struct HelloWorld : IPixelShader<float4>
public readonly float time;
/// <inheritdoc/>
public float4 Execute()
{
/// <summary>
/// The current time since the start of the application.
/// </summary>
public readonly float time;
// Normalized screen space UV coordinates from 0.0 to 1.0
float2 uv = ThreadIds.Normalized.XY;
/// <inheritdoc/>
public float4 Execute()
{
// Normalized screen space UV coordinates from 0.0 to 1.0
float2 uv = ThreadIds.Normalized.XY;
// Time varying pixel color
float3 col = 0.5f + 0.5f * Hlsl.Cos(time + new float3(uv, uv.X) + new float3(0, 2, 4));
// Time varying pixel color
float3 col = 0.5f + 0.5f * Hlsl.Cos(time + new float3(uv, uv.X) + new float3(0, 2, 4));
// Output to screen
return new(col, 1f);
}
// Output to screen
return new(col, 1f);
}
}