Skip to content

Naming of texture types. #923

Closed
Closed

Description

@dj2

Currently the texture types are named along the lines of:

texture_sampled_1d
texture_ro_1d
texture_rw_1d
depth_1d

Should those names be kept, what are some alternatives?

texture_1d
texture_1d<read | write>
depth_1d

Activity

  1. added
    wgsl
    on Jul 14, 2020
  2. added this to the MVP milestone on Jul 14, 2020
  3. kvark commented on Jul 14, 2020

    @kvark
    Contributor

    texture_1d<read | write>

    I somewhat strongly believe we should have separate types for storages versus non storages (and those makes sense to have separate for sampled versus depth), since their generic parameters are different. So what I thought we could have is:

    texture_2d<type>
    texture_depth_2d
    texture_storage_2d<access, format>
    
  4. Kangz commented on Nov 16, 2021

    @Kangz
    Contributor

    The WGSL texture type names are fairly stable, closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    wgsl

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions