|
@@ -1346,6 +1346,8 @@ image and the ``location`` passed to the function are used as arguments to
|
|
``OpImageSampleImplicitLod``, with the optional ``offset`` tranlated into
|
|
``OpImageSampleImplicitLod``, with the optional ``offset`` tranlated into
|
|
addtional SPIR-V image operands ``ConstOffset`` or ``Offset`` on it.
|
|
addtional SPIR-V image operands ``ConstOffset`` or ``Offset`` on it.
|
|
|
|
|
|
|
|
+The overload with the status parameter are not supported.
|
|
|
|
+
|
|
``.SampleLevel(sampler, location, lod[, offset])``
|
|
``.SampleLevel(sampler, location, lod[, offset])``
|
|
++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
|
|
|
|
@@ -1359,6 +1361,8 @@ is attached to the instruction as an SPIR-V image operands ``Lod``. The optional
|
|
``offset`` is also tranlated into addtional SPIR-V image operands ``ConstOffset``
|
|
``offset`` is also tranlated into addtional SPIR-V image operands ``ConstOffset``
|
|
or ``Offset`` on it.
|
|
or ``Offset`` on it.
|
|
|
|
|
|
|
|
+The overload with the status parameter are not supported.
|
|
|
|
+
|
|
``.SampleGrad(sampler, location, ddx, ddy[, offset])``
|
|
``.SampleGrad(sampler, location, ddx, ddy[, offset])``
|
|
++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
|
|
|
|
@@ -1368,6 +1372,8 @@ Similarly to ``.SampleLevel``, the ``ddx`` and ``ddy`` parameter are attached to
|
|
the ``OpImageSampleExplicitLod`` instruction as an SPIR-V image operands
|
|
the ``OpImageSampleExplicitLod`` instruction as an SPIR-V image operands
|
|
``Grad``.
|
|
``Grad``.
|
|
|
|
|
|
|
|
+The overload with the status parameter are not supported.
|
|
|
|
+
|
|
``.SampleBias(sampler, location, bias[, offset])``
|
|
``.SampleBias(sampler, location, bias[, offset])``
|
|
++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
|
|
|
|
@@ -1377,14 +1383,34 @@ The translation is similar to ``.Sample()``, with the ``bias`` parameter
|
|
attached to the ``OpImageSampleImplicitLod`` instruction as an SPIR-V image
|
|
attached to the ``OpImageSampleImplicitLod`` instruction as an SPIR-V image
|
|
operands ``Bias``.
|
|
operands ``Bias``.
|
|
|
|
|
|
-``.Gather(sampler, location[, offset])``
|
|
|
|
-++++++++++++++++++++++++++++++++++++++++
|
|
|
|
|
|
+The overload with the status parameter are not supported.
|
|
|
|
+
|
|
|
|
+``.Gather()``
|
|
|
|
++++++++++++++
|
|
|
|
|
|
Available to ``Texture2D``, ``Texture2DArray``, ``TextureCube``, and
|
|
Available to ``Texture2D``, ``Texture2DArray``, ``TextureCube``, and
|
|
``TextureCubeArray``.
|
|
``TextureCubeArray``.
|
|
|
|
|
|
The translation is similar to ``.Sample()``, but the ``OpImageGather``
|
|
The translation is similar to ``.Sample()``, but the ``OpImageGather``
|
|
-instruction is used.
|
|
|
|
|
|
+instruction is used, with component setting to 0.
|
|
|
|
+
|
|
|
|
+The overload with the status parameter are not supported.
|
|
|
|
+
|
|
|
|
+``.GatherRed()``, ``.GatherGreen()``, ``.GatherBlue()``, ``.GatherAlpha()``
|
|
|
|
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
|
|
+
|
|
|
|
+Available to ``Texture2D``, ``Texture2DArray``, ``TextureCube``, and
|
|
|
|
+``TextureCubeArray``.
|
|
|
|
+
|
|
|
|
+The ``OpImageGather`` instruction is used to translate these functions, with
|
|
|
|
+component setting to 0, 1, 2, and 3 respectively.
|
|
|
|
+
|
|
|
|
+There are a few overloads for these functions:
|
|
|
|
+
|
|
|
|
+- For those overloads taking 4 offset parameters, those offset parameters will
|
|
|
|
+ be conveyed as an additional ``ConstOffsets`` image operands to the
|
|
|
|
+ instruction. So those offset parameters must all be constant values.
|
|
|
|
+- Those overloads with the status parameter are not supported.
|
|
|
|
|
|
``.Load(location[, sampleIndex][, offset])``
|
|
``.Load(location[, sampleIndex][, offset])``
|
|
++++++++++++++++++++++++++++++++++++++++++++
|
|
++++++++++++++++++++++++++++++++++++++++++++
|
|
@@ -1398,6 +1424,8 @@ The return value of ``OpImageFetch`` is always a four-component vector; so
|
|
proper additional instructions are generated to truncate the vector and return
|
|
proper additional instructions are generated to truncate the vector and return
|
|
the desired number of elements.
|
|
the desired number of elements.
|
|
|
|
|
|
|
|
+The overload with the status parameter are not supported.
|
|
|
|
+
|
|
``operator[]``
|
|
``operator[]``
|
|
++++++++++++++
|
|
++++++++++++++
|
|
Handled similarly as ``.Load()``.
|
|
Handled similarly as ``.Load()``.
|