Skip to content

[scenario] Core Texture and Sampler Support #406

@inbelic

Description

@inbelic

This workstream is complete when all core texture/sampler types are defined and basic texture sampling, load/store, and operator methods are supported on both SPIR-V/DirectX.

At the time of issue creation, support for Texture2D when targeting SPIR-V has progressed substantially. The approach taken is vertical to define the Texture2D and [Comparison]Sampler types and to then implement all the methods on Texture2D. It should then allow us to add support for the other types by adjusting methods for the new type. We will plan to use a similar approach.

Proposal Updates

Texture Methods

Note: The frontend for Texture2D/Sampler types are defined and all of the methods (except Store and .sample) currently output a placeholder call to the corresponding dx intrinsic, the work will be to correct the intrinsic call and provide the DXIL lowering.

Shader Flags

Texture Types

  • Texture1D
  • Texture3D
  • TextureCube
  • Texture1DArray
  • Texture2DArray
  • TextureCubeArray
  • Texture2DMS
  • Texture2DMSArray
  • RWTexture1D
  • RWTexture2D
  • RWTexture3D
  • RWTexture1DArray
  • RWTexture2DArray

todo: update with issue links

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

Status

Planning

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions