Skip to content

LayoutEntryToInput

LayoutEntryToInput<T>: TgpuLayoutEntry | null extends T ? TgpuBuffer<AnyWgslData> | GPUBuffer | TgpuSampler | GPUSampler | TgpuComparisonSampler | GPUSampler | TgpuTexture | GPUTextureView | GPUExternalTexture : T extends TgpuLayoutUniform ? TgpuBuffer<MemIdentity<UnwrapRuntimeConstructor<T["uniform"]>>> & UniformFlag | GPUBuffer : T extends TgpuLayoutStorage ? TgpuBuffer<MemIdentity<UnwrapRuntimeConstructor<T["storage"]>>> & StorageFlag | GPUBuffer : T extends TgpuLayoutSampler ? TgpuSampler | GPUSampler : T extends TgpuLayoutComparisonSampler ? TgpuComparisonSampler | GPUSampler : T extends TgpuLayoutTexture ? GPUTextureView | GPUTexture | SampledFlag & TgpuTexture<Prettify<…>> | TgpuTextureView<WgslTexture> : T extends TgpuLayoutStorageTexture ? GPUTextureView | GPUTexture | StorageFlag & TgpuTexture<…> | TgpuTextureView<WgslStorageTexture> : T extends TgpuLayoutExternalTexture ? GPUExternalTexture : never

T extends TgpuLayoutEntry | null

packages/typegpu/src/tgpuBindGroupLayout.ts:354