@@ -297,7 +297,7 @@ pub const GraphicsContext = struct {
297
297
const cmdqueue = blk : {
298
298
var cmdqueue : * d3d12.ICommandQueue = undefined ;
299
299
hrPanicOnFail (device .CreateCommandQueue (&.{
300
- .type = .DIRECT ,
300
+ .Type = .DIRECT ,
301
301
.Priority = @intFromEnum (d3d12 .COMMAND_QUEUE_PRIORITY .NORMAL ),
302
302
.Flags = .{},
303
303
.NodeMask = 0 ,
@@ -1175,7 +1175,7 @@ pub const GraphicsContext = struct {
1175
1175
for (gctx .transition_resource_barriers .items ) | barrier | {
1176
1176
if (gctx .resource_pool .isResourceValid (barrier .resource )) {
1177
1177
d3d12_barriers [num_valid_barriers ] = .{
1178
- .type = .TRANSITION ,
1178
+ .Type = .TRANSITION ,
1179
1179
.Flags = .{},
1180
1180
.u = .{
1181
1181
.Transition = .{
@@ -1604,11 +1604,11 @@ pub const GraphicsContext = struct {
1604
1604
1605
1605
gctx .cmdlist .CopyTextureRegion (&.{
1606
1606
.pResource = gctx .lookupResource (texture ).? ,
1607
- .type = .SUBRESOURCE_INDEX ,
1607
+ .Type = .SUBRESOURCE_INDEX ,
1608
1608
.u = .{ .SubresourceIndex = subresource },
1609
1609
}, 0 , 0 , 0 , &.{
1610
1610
.pResource = upload .buffer ,
1611
- .type = .PLACED_FOOTPRINT ,
1611
+ .Type = .PLACED_FOOTPRINT ,
1612
1612
.u = .{ .PlacedFootprint = layout [0 ] },
1613
1613
}, null );
1614
1614
}
@@ -1642,11 +1642,11 @@ pub const GraphicsContext = struct {
1642
1642
1643
1643
gctx .cmdlist .CopyTextureRegion (& d3d12.TEXTURE_COPY_LOCATION {
1644
1644
.pResource = gctx .lookupResource (texture ).? ,
1645
- .type = .SUBRESOURCE_INDEX ,
1645
+ .Type = .SUBRESOURCE_INDEX ,
1646
1646
.u = .{ .SubresourceIndex = 0 },
1647
1647
}, 0 , 0 , 0 , & d3d12.TEXTURE_COPY_LOCATION {
1648
1648
.pResource = upload .buffer ,
1649
- .type = .PLACED_FOOTPRINT ,
1649
+ .Type = .PLACED_FOOTPRINT ,
1650
1650
.u = .{ .PlacedFootprint = layout [0 ] },
1651
1651
}, null );
1652
1652
@@ -1781,11 +1781,11 @@ pub const GraphicsContext = struct {
1781
1781
1782
1782
gctx .cmdlist .CopyTextureRegion (& d3d12.TEXTURE_COPY_LOCATION {
1783
1783
.pResource = gctx .lookupResource (texture ).? ,
1784
- .type = .SUBRESOURCE_INDEX ,
1784
+ .Type = .SUBRESOURCE_INDEX ,
1785
1785
.u = .{ .SubresourceIndex = 0 },
1786
1786
}, 0 , 0 , 0 , & d3d12.TEXTURE_COPY_LOCATION {
1787
1787
.pResource = upload .buffer ,
1788
- .type = .PLACED_FOOTPRINT ,
1788
+ .Type = .PLACED_FOOTPRINT ,
1789
1789
.u = .{ .PlacedFootprint = layout [0 ] },
1790
1790
}, null );
1791
1791
@@ -1886,11 +1886,11 @@ pub const GraphicsContext = struct {
1886
1886
1887
1887
gctx .cmdlist .CopyTextureRegion (&.{
1888
1888
.pResource = gctx .lookupResource (texture ).? ,
1889
- .type = .SUBRESOURCE_INDEX ,
1889
+ .Type = .SUBRESOURCE_INDEX ,
1890
1890
.u = .{ .SubresourceIndex = subresource_index },
1891
1891
}, 0 , 0 , 0 , &.{
1892
1892
.pResource = upload .buffer ,
1893
- .type = .PLACED_FOOTPRINT ,
1893
+ .Type = .PLACED_FOOTPRINT ,
1894
1894
.u = .{ .PlacedFootprint = layout [0 ] },
1895
1895
}, null );
1896
1896
}
@@ -2182,13 +2182,13 @@ pub const MipmapGenerator = struct {
2182
2182
while (mip_index < dispatch_num_mips ) : (mip_index += 1 ) {
2183
2183
const dst = d3d12.TEXTURE_COPY_LOCATION {
2184
2184
.pResource = gctx .lookupResource (texture_handle ).? ,
2185
- .type = .SUBRESOURCE_INDEX ,
2185
+ .Type = .SUBRESOURCE_INDEX ,
2186
2186
.u = .{ .SubresourceIndex = mip_index + 1 + current_src_mip_level +
2187
2187
array_slice * texture_desc .MipLevels },
2188
2188
};
2189
2189
const src = d3d12.TEXTURE_COPY_LOCATION {
2190
2190
.pResource = gctx .lookupResource (mipgen .scratch_textures [mip_index ]).? ,
2191
- .type = .SUBRESOURCE_INDEX ,
2191
+ .Type = .SUBRESOURCE_INDEX ,
2192
2192
.u = .{ .SubresourceIndex = 0 },
2193
2193
};
2194
2194
const box = d3d12.BOX {
@@ -2489,7 +2489,7 @@ const DescriptorHeap = struct {
2489
2489
const heap = blk : {
2490
2490
var heap : ? * d3d12.IDescriptorHeap = null ;
2491
2491
hrPanicOnFail (device .CreateDescriptorHeap (&.{
2492
- .type = heap_type ,
2492
+ .Type = heap_type ,
2493
2493
.NumDescriptors = capacity ,
2494
2494
.Flags = flags ,
2495
2495
.NodeMask = 0 ,
0 commit comments