MoonWorks/src/Graphics/Bindings/TextureSamplerBinding.cs

23 lines
452 B
C#
Raw Normal View History

using System;
namespace MoonWorks.Graphics
{
2022-02-23 05:14:32 +00:00
public struct TextureSamplerBinding
{
public IntPtr TextureHandle;
public IntPtr SamplerHandle;
2022-02-23 05:14:32 +00:00
public TextureSamplerBinding(Texture texture, Sampler sampler)
{
TextureHandle = texture.Handle;
SamplerHandle = sampler.Handle;
}
public TextureSamplerBinding(IntPtr textureHandle, IntPtr samplerHandle)
{
TextureHandle = textureHandle;
SamplerHandle = samplerHandle;
2022-02-23 05:14:32 +00:00
}
}
}