CreateResourceRequest

DesktopOperating SystemUWPWin32Windows

Properties

Name Type Description
resourceType string
width integer Width in pixels or bytes (for buffers)
height integer Height in pixels (for textures)
depthOrArraySize integer
format string DXGI format (e.g., R8G8B8A8_UNORM)
heapType string
flags array
View JSON Schema on GitHub

JSON Schema

microsoft-windows-10-createresourcerequest-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/CreateResourceRequest",
  "title": "CreateResourceRequest",
  "type": "object",
  "properties": {
    "resourceType": {
      "type": "string",
      "enum": [
        "Buffer",
        "Texture1D",
        "Texture2D",
        "Texture3D"
      ]
    },
    "width": {
      "type": "integer",
      "description": "Width in pixels or bytes (for buffers)"
    },
    "height": {
      "type": "integer",
      "description": "Height in pixels (for textures)"
    },
    "depthOrArraySize": {
      "type": "integer",
      "default": 1
    },
    "format": {
      "type": "string",
      "description": "DXGI format (e.g., R8G8B8A8_UNORM)"
    },
    "heapType": {
      "type": "string",
      "enum": [
        "Default",
        "Upload",
        "Readback"
      ],
      "default": "Default"
    },
    "flags": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "AllowRenderTarget",
          "AllowDepthStencil",
          "AllowUnorderedAccess",
          "DenyShaderResource"
        ]
      }
    }
  },
  "required": [
    "resourceType",
    "width"
  ]
}