3.3 KiB
DRP2 Schema
This directory contains machine-readable schema material for DRP2.
Authority
The authoritative protocol meaning still lives first in the prose spec. The root authority map is ../AUTHORITY.md.
Active source-of-truth documents:
../COMMANDS.md: active command set plus per-command field semantics.../ERRORS.md: validation and error model.../LIFETIMES.md: lifetime and encoder/pass state rules.../VERSIONING.md: compatibility and contract-evolution rules.
If schema and markdown diverge, the markdown contract wins until the schema is updated.
../COMMANDS.md owns the human active/deferred command boundary. This directory is the checkable mirror and should not independently promote command families.
Active Versus Deferred Schema Material
Only the active files listed below are authoritative for the current DRP2 review surface. Everything else in this directory is draft material and must be treated as non-authoritative unless and until it is promoted into the active list.
Authoritative files:
drp_command.jsoncommon/*.jsoncommands/HelloRenderer.jsoncommands/RendererHelloReply.jsoncommands/Error.jsoncommands/CreateBuffer.jsoncommands/DestroyBuffer.jsoncommands/WriteBuffer.jsoncommands/CreateTexture.jsoncommands/DestroyTexture.jsoncommands/WriteTexture.jsoncommands/CreateBindGroup.jsoncommands/DestroyBindGroup.jsoncommands/CreateBindGroupLayout.jsoncommands/DestroyBindGroupLayout.jsoncommands/CreateShaderModule.jsoncommands/DestroyShaderModule.jsoncommands/CreateRenderPipeline.jsoncommands/DestroyRenderPipeline.jsoncommands/CreateComputePipeline.jsoncommands/DestroyComputePipeline.jsoncommands/BeginCommandEncoder.jsoncommands/FinishCommandEncoder.jsoncommands/BeginRenderPass.jsoncommands/EndRenderPass.jsoncommands/BeginComputePass.jsoncommands/EndComputePass.jsoncommands/SetPipeline.jsoncommands/SetVertexBuffer.jsoncommands/SetIndexBuffer.jsoncommands/SetBindGroup.jsoncommands/SetViewport.jsoncommands/SetScissor.jsoncommands/SetBlendConstant.jsoncommands/SetStencilReference.jsoncommands/Draw.jsoncommands/DrawIndexed.jsoncommands/DispatchWorkgroups.jsoncommands/ResourceBarrier.jsoncommands/CopyBufferToBuffer.jsoncommands/CopyBufferToTexture.jsoncommands/CopyTextureToBuffer.jsoncommands/CopyTextureToTexture.jsoncommands/QueueSubmit.jsoncommands/QueueSubmitReply.jsoncommands/CreateSampler.jsoncommands/DestroySampler.jsoncommands/CreateTextureView.jsoncommands/DestroyTextureView.json
Deferred, non-authoritative files:
commands/CreatePipelineLayout.jsoncommands/DestroyPipelineLayout.jsoncommands/DispatchWorkgroupsIndirect.jsoncommands/DrawIndirect.jsoncommands/DrawIndexedIndirect.json
See DEFERRED.md for the explicit deferred inventory.
Maintenance Rules
When changing the active protocol:
- update
../COMMANDS.mdfirst, - update the relevant
commands/*.jsonfiles to match, - update
drp_command.jsonso its root union matches the active command set, - move future-facing draft schemas back into the deferred list until their field semantics are frozen in prose.