Function depthStencilFormatAspectSize
- depthStencilFormatAspectSize(format, aspect): 1 | -1 | 2 | 4
Parameters
format: "depth32float-stencil8" | "stencil8" | "depth16unorm" | "depth24plus" | "depth24plus-stencil8" | "depth32float"
aspect: "stencil-only" | "depth-only"
Returns 1 | -1 | 2 | 4
Returns the byte size of the depth or stencil aspect of the specified depth/stencil format, or -1 if none.