-
-
Notifications
You must be signed in to change notification settings - Fork 911
/
RootSignature.cs
33 lines (29 loc) · 1.17 KB
/
RootSignature.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Copyright (c) Stride contributors (https://stride3d.net) and Silicon Studio Corp. (https://www.siliconstudio.co.jp)
// Distributed under the MIT license. See the LICENSE.md file in the project root for more information.
using System;
using System.Collections.Generic;
using System.Linq;
using Stride.Shaders;
namespace Stride.Graphics
{
/// <summary>
/// Describes how <see cref="DescriptorSet"/> will be bound together.
/// </summary>
public class RootSignature : GraphicsResourceBase
{
internal readonly EffectDescriptorSetReflection EffectDescriptorSetReflection;
public static RootSignature New(GraphicsDevice graphicsDevice, EffectDescriptorSetReflection effectDescriptorSetReflection)
{
return new RootSignature(graphicsDevice, effectDescriptorSetReflection);
}
private RootSignature(GraphicsDevice graphicsDevice, EffectDescriptorSetReflection effectDescriptorSetReflection)
: base(graphicsDevice)
{
this.EffectDescriptorSetReflection = effectDescriptorSetReflection;
}
protected internal override bool OnRecreate()
{
return true;
}
}
}