Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions spec/index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,13 @@ enum GPUTextureFormat {
found in native APIs, which has a precision of
1 ULP = 1 / (2<sup>24</sup> &minus; 1).

<script type=idl>
enum GPUTextureComponentType {
"float",
"sint",
"uint"
};
</script>

Samplers {#samplers}
====================
Expand Down Expand Up @@ -509,6 +516,7 @@ dictionary GPUBindGroupLayoutBinding {
required GPUShaderStageFlags visibility;
required GPUBindingType type;
GPUTextureViewDimension textureDimension;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

side note: should this be required or default to 2d?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should probably default to 2d. I'll open another PR for it.

GPUTextureComponentType textureComponentType = "float";
boolean multisampled = false;
boolean dynamic = false;
};
Expand Down