Implement GPUTexture and GPUTextureView

This commit is contained in:
Kunal Mohan 2020-05-29 12:02:05 +05:30
parent d9db350df5
commit af95d92231
15 changed files with 638 additions and 15 deletions

View file

@ -56,7 +56,7 @@ enum GPUCullMode {
};
dictionary GPUColorStateDescriptor {
//required GPUTextureFormat format;
required GPUTextureFormat format;
GPUBlendDescriptor alphaBlend = {};
GPUBlendDescriptor colorBlend = {};
@ -107,7 +107,7 @@ enum GPUStencilOperation {
typedef [EnforceRange] unsigned long GPUStencilValue;
dictionary GPUDepthStencilStateDescriptor {
//required GPUTextureFormat format;
required GPUTextureFormat format;
boolean depthWriteEnabled = false;
GPUCompareFunction depthCompare = "always";