textureDimensions
Call Signature
Section titled “Call Signature”textureDimensions<
T
>(texture
):number
Defined in: packages/typegpu/src/std/texture.ts:377
Type Parameters
Section titled “Type Parameters”• T extends TgpuSampledTexture
<"1d"
, ChannelData
> | TgpuStorageTexture
<"1d"
, TexelData
>
Parameters
Section titled “Parameters”texture
Section titled “texture”T
Returns
Section titled “Returns”number
Call Signature
Section titled “Call Signature”textureDimensions<
T
>(texture
,level
):number
Defined in: packages/typegpu/src/std/texture.ts:377
Type Parameters
Section titled “Type Parameters”• T extends TgpuSampledTexture
<"1d"
, ChannelData
>
Parameters
Section titled “Parameters”texture
Section titled “texture”T
number
Returns
Section titled “Returns”number
Call Signature
Section titled “Call Signature”textureDimensions<
T
>(texture
):v2u
Defined in: packages/typegpu/src/std/texture.ts:377
Type Parameters
Section titled “Type Parameters”• T extends TgpuSampledTexture
<"2d"
, ChannelData
> | TgpuSampledTexture
<"2d-array"
, ChannelData
> | TgpuSampledTexture
<"cube-array"
, ChannelData
> | TgpuStorageTexture
<"2d"
, TexelData
> | TgpuStorageTexture
<"2d-array"
, TexelData
> | TgpuSampledTexture
<"cube"
, ChannelData
>
Parameters
Section titled “Parameters”texture
Section titled “texture”T
Returns
Section titled “Returns”Call Signature
Section titled “Call Signature”textureDimensions<
T
>(texture
,level
):v2u
Defined in: packages/typegpu/src/std/texture.ts:377
Type Parameters
Section titled “Type Parameters”• T extends TgpuSampledTexture
<"2d"
, ChannelData
> | TgpuSampledTexture
<"2d-array"
, ChannelData
> | TgpuSampledTexture
<"cube-array"
, ChannelData
> | TgpuSampledTexture
<"cube"
, ChannelData
>
Parameters
Section titled “Parameters”texture
Section titled “texture”T
number
Returns
Section titled “Returns”Call Signature
Section titled “Call Signature”textureDimensions<
T
>(texture
):v3u
Defined in: packages/typegpu/src/std/texture.ts:377
Type Parameters
Section titled “Type Parameters”• T extends TgpuSampledTexture
<"3d"
, ChannelData
> | TgpuStorageTexture
<"3d"
, TexelData
>
Parameters
Section titled “Parameters”texture
Section titled “texture”T
Returns
Section titled “Returns”Call Signature
Section titled “Call Signature”textureDimensions<
T
>(texture
,level
):v3u
Defined in: packages/typegpu/src/std/texture.ts:377
Type Parameters
Section titled “Type Parameters”• T extends TgpuSampledTexture
<"3d"
, ChannelData
>
Parameters
Section titled “Parameters”texture
Section titled “texture”T
number