Skip to content

Commit 414fe5f

Browse files
authored
Fix misleading error message (#687)
1 parent 8ba51a9 commit 414fe5f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

packages/typegpu/src/tgpuBindGroupLayout.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -273,17 +273,17 @@ export type LayoutEntryToInput<T extends TgpuLayoutEntry | null> =
273273
: T extends TgpuLayoutTexture
274274
?
275275
| GPUTextureView
276-
| (TgpuTexture<
277-
Prettify<TextureProps & GetTextureRestriction<T>>
278-
> &
279-
Sampled)
276+
| (Sampled &
277+
TgpuTexture<
278+
Prettify<TextureProps & GetTextureRestriction<T>>
279+
>)
280280
: T extends TgpuLayoutStorageTexture
281281
?
282282
| GPUTextureView
283-
| (TgpuTexture<
284-
Prettify<TextureProps & GetStorageTextureRestriction<T>>
285-
> &
286-
Storage)
283+
| (Storage &
284+
TgpuTexture<
285+
Prettify<TextureProps & GetStorageTextureRestriction<T>>
286+
>)
287287
: T extends TgpuLayoutExternalTexture
288288
? GPUExternalTexture
289289
: never;

0 commit comments

Comments
 (0)