Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save HansKristian-Work/49cfdcc0ddcd27f304709539486e0ff4 to your computer and use it in GitHub Desktop.

Select an option

Save HansKristian-Work/49cfdcc0ddcd27f304709539486e0ff4 to your computer and use it in GitHub Desktop.
// Buffer Definitions:
//
// cbuffer c
// {
//
// struct Foo
// {
//
// float3 a; // Offset: 0
// float3 b; // Offset: 16
//
// } d; // Offset: 0 Size: 28
//
// }
//
// Resource bind info for Bar
// {
//
// struct Foo
// {
//
// float3 a; // Offset: 0
// float3 b; // Offset: 12
//
// } $Element; // Offset: 0 Size: 24
//
// }
//
//
// Resource Bindings:
//
// Name Type Format Dim HLSL Bind Count
// ------------------------------ ---------- ------- ----------- -------------- ------
// Bar UAV struct r/w u1 1
// c cbuffer NA NA cb0 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment