// Re-export the RHI's data layer.
//
// The split between `rhi` (handles + methods) and `rhi/types` (enums and
// descriptors) is an implementation detail forced by the language: a virtual
// package cannot carry concrete types, and methods must live with their type, so
// the handle types and the data they describe ended up in different packages.
//
// Consumers should not have to know that. `pub using` here makes `@rhi` the one
// import a renderer needs -- `@rhi.TextureFormat`, `@rhi.PipelineDesc::new` and
// `@rhi.Pipeline` all resolve -- which is also what kept the L5 migration a
// single prefix rewrite rather than a symbol-by-symbol split across 1,048 call
// sites.
//
// Kept in sync with `rhi/types/pkg.generated.mbti`; `tools/check-gates.py`'s
// rhi-layering gate fails if a type is added there and not re-exported here.
pub using @types {
type AddressMode,
type BackendKind,
type BlendFactor,
type BlendMode,
type BindingLayout,
type BlendOp,
type BlendState,
type BorderColor,
type BufferKind,
type BufferUsage,
type ClearColor,
type ColorTargetState,
type CompareOp,
type CullMode,
type DepthStencilState,
type DepthTargetDesc,
type DeviceCapabilities,
type DeviceDesc,
type ExternalSurface,
type ExternalSurfaceKind,
type Filter,
type FrontFace,
type IndexType,
type LoadOp,
type MemoryLocation,
type MeshPipelineDesc,
type PipelineDesc,
type PresentMode,
type PrimitiveTopology,
type RasterState,
type RayGeometryDesc,
type RayInstanceDesc,
type RenderTargetDesc,
type SampleCount,
type ShaderLanguage,
type SamplerDesc,
type StencilFaceState,
type StencilOp,
type StencilState,
type StoreOp,
type SwapchainDesc,
type TextureDesc,
type TextureDimension,
type TextureFormat,
type TextureUsage,
type VertexAttribute,
type VertexBufferLayout,
type VertexFormat,
type VertexStepMode,
}