using Ghost.Core; namespace Ghost.Graphics.RHI; public readonly struct GPUResource; public readonly struct GPUTexture; public readonly struct GPUBuffer; public readonly struct Sampler; public static class ResourceHandleExtensions { public static Handle AsResource(this Handle texture) { return new Handle(texture.ID, texture.Generation); } public static Handle AsResource(this Handle buffer) { return new Handle(buffer.ID, buffer.Generation); } public static Handle AsTexture(this Handle resource) { return new Handle(resource.ID, resource.Generation); } public static Handle AsGraphicsBuffer(this Handle resource) { return new Handle(resource.ID, resource.Generation); } }