2022-05-24 02:12:17 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace MoonWorks.Graphics
|
2021-01-20 03:33:27 +00:00
|
|
|
|
{
|
2022-02-23 05:14:32 +00:00
|
|
|
|
public struct TextureSamplerBinding
|
|
|
|
|
{
|
2022-05-24 02:12:17 +00:00
|
|
|
|
public IntPtr TextureHandle;
|
|
|
|
|
public IntPtr SamplerHandle;
|
2021-01-20 03:33:27 +00:00
|
|
|
|
|
2022-02-23 05:14:32 +00:00
|
|
|
|
public TextureSamplerBinding(Texture texture, Sampler sampler)
|
|
|
|
|
{
|
2022-05-24 02:12:17 +00:00
|
|
|
|
TextureHandle = texture.Handle;
|
|
|
|
|
SamplerHandle = sampler.Handle;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public TextureSamplerBinding(IntPtr textureHandle, IntPtr samplerHandle)
|
|
|
|
|
{
|
|
|
|
|
TextureHandle = textureHandle;
|
|
|
|
|
SamplerHandle = samplerHandle;
|
2022-02-23 05:14:32 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2021-01-20 03:33:27 +00:00
|
|
|
|
}
|