{ "$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" ] }