Texture3D::mips。運算子函式

傳回唯讀資源變數。

語法

R mips.Operator[][](
  in uint mipSlice,
  in uint3 pos
);

參數

mipSlice [in]

類型: uint

Mip 配量索引。

pos [in]

類型: uint3

索引位置。 包含 (x、y、z) 座標。

傳回值

類型: R

唯讀資源變數。

備註

使用範例

Texture3D<float4> tex;
uint mip = 2;
uint3 pos_xyz = {123, 456, 789};
float4 f = tex.mips[mip][pos_xyz];
        

下列著色器類型支援此函式:

頂點 船體 網域 幾何形狀 像素 計算
x x x x x x

 

另請參閱

Texture3D

著色器模型 5