2024-03-01 23:03:14 +00:00
|
|
|
|
using RefreshCS;
|
|
|
|
|
|
|
|
|
|
namespace MoonWorks.Graphics
|
2021-01-20 03:33:27 +00:00
|
|
|
|
{
|
2023-09-19 20:19:41 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// A texture-sampler pair to be used when binding samplers.
|
|
|
|
|
/// </summary>
|
2024-03-01 23:03:14 +00:00
|
|
|
|
public readonly record struct TextureSamplerBinding(
|
|
|
|
|
Texture Texture,
|
|
|
|
|
Sampler Sampler
|
|
|
|
|
) {
|
|
|
|
|
public Refresh.TextureSamplerBinding ToRefresh()
|
2022-02-23 05:14:32 +00:00
|
|
|
|
{
|
2024-03-01 23:03:14 +00:00
|
|
|
|
return new Refresh.TextureSamplerBinding
|
|
|
|
|
{
|
|
|
|
|
texture = Texture.Handle,
|
|
|
|
|
sampler = Sampler.Handle
|
|
|
|
|
};
|
2022-02-23 05:14:32 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2021-01-20 03:33:27 +00:00
|
|
|
|
}
|