Skip to content

Commit 6556039

Browse files
authored
clarify error condition for D3D10 and D3D11 3D textures (KhronosGroup#1342)
* remove confusing phrase from 3D D3D10 and D3D11 texture errors Because D3D10 and D3D11 textures cannot be multisampled, there is no need to list this case as a possible error condition. * reflow text
1 parent be2ebff commit 6556039

1 file changed

Lines changed: 8 additions & 10 deletions

File tree

api/opencl_runtime_layer.asciidoc

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4885,11 +4885,10 @@ returned in _errcode_ret_:
48854885
_subresource_ is not a valid subresource index for _resource_.
48864886
* {CL_INVALID_D3D10_RESOURCE_KHR} if _resource_ is not a Direct3D 10
48874887
texture resource, if _resource_ was created with the D3D10_USAGE flag
4888-
D3D10_USAGE_IMMUTABLE, if _resource_ is a multisampled texture, if a
4889-
{cl_mem_TYPE} from subresource _subresource_ of _resource_ has already
4890-
been created using {clCreateFromD3D10Texture3DKHR}, or if _context_ was
4891-
not created against the same Direct3D 10 device from which _resource_
4892-
was created.
4888+
D3D10_USAGE_IMMUTABLE, if a {cl_mem_TYPE} from subresource _subresource_ of
4889+
_resource_ has already been created using {clCreateFromD3D10Texture3DKHR},
4890+
or if _context_ was not created against the same Direct3D 10 device from
4891+
which _resource_ was created.
48934892
* {CL_INVALID_IMAGE_FORMAT_DESCRIPTOR} if the Direct3D 10 texture format
48944893
of _resource_ is not listed in the <<dxgi-image-formats-table, DXGI
48954894
Formats and Corresponding OpenCL Image Formats>> table or if the
@@ -5017,11 +5016,10 @@ returned in _errcode_ret_:
50175016
_subresource_ is not a valid subresource index for _resource_.
50185017
* {CL_INVALID_D3D11_RESOURCE_KHR} if _resource_ is not a Direct3D 11
50195018
texture resource, if _resource_ was created with the D3D11_USAGE flag
5020-
D3D11_USAGE_IMMUTABLE, if _resource_ is a multisampled texture, if a
5021-
{cl_mem_TYPE} from subresource _subresource_ of _resource_ has already
5022-
been created using {clCreateFromD3D11Texture3DKHR}, or if _context_ was
5023-
not created against the same Direct3D 11 device from which _resource_
5024-
was created.
5019+
D3D11_USAGE_IMMUTABLE, if a {cl_mem_TYPE} from subresource _subresource_ of
5020+
_resource_ has already been created using {clCreateFromD3D11Texture3DKHR},
5021+
or if _context_ was not created against the same Direct3D 11 device from
5022+
which _resource_ was created.
50255023
* {CL_INVALID_IMAGE_FORMAT_DESCRIPTOR} if the Direct3D 11 texture format
50265024
of _resource_ is not listed in the <<dxgi-image-formats-table, DXGI
50275025
Formats and Corresponding OpenCL Image Formats>> table or if the

0 commit comments

Comments
 (0)