Shader forms: sizes of views nothing reads, ordered sections, wave sums off the beaten path, counters
- An image or structured buffer whose descriptor is read for its size alone (the puddle passes, a water simulation step). - The record count of a structured buffer is asked of the raw view the host makes of it: as a structured view's it was in bytes on AMD. - Primitive-ordered pixel shading becomes rasterizer ordered views (the hair cards' layers). - A 16-bit wave sum where not every lane runs, on 64-lane waves, bit for bit as the console's tree. - "Some lane is left" of a mask operation as a number; scalars parked in a VGPR used before; a one-channel store into a counter texture (the upscaler). - translate --list prints a hash of every emitted module. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
eb50022824
commit
5686c41b47
10 files changed
+941
-31
No files matched your search
@@ -76,6 +76,7 @@ pub(crate) mod flags {
|
||||
pub const DOUBLES: u64 = 1 << 2;
|
||||
pub const STENCIL_REF: u64 = 1 << 11;
|
||||
pub const TYPED_UAV_LOADS: u64 = 1 << 13;
|
||||
pub const ROVS: u64 = 1 << 18;
|
||||
pub const WAVE_OPS: u64 = 1 << 19;
|
||||
pub const BARYCENTRICS: u64 = 1 << 22;
|
||||
pub const INT64: u64 = 1 << 20;
|
||||
@@ -455,6 +456,7 @@ impl Shader {
|
||||
self.m.optimise(passes);
|
||||
let used = self.m.usage();
|
||||
for (flag, used) in [
|
||||
(flags::ROVS, used.rovs),
|
||||
(flags::WAVE_OPS, used.wave_ops),
|
||||
(flags::INT64, used.int64),
|
||||
(flags::TYPED_UAV_LOADS, used.typed_uav_loads),
|
||||
@@ -787,6 +789,9 @@ impl Shader {
|
||||
if self.flags & flags::TYPED_UAV_LOADS != 0 {
|
||||
features |= 0x800;
|
||||
}
|
||||
if self.flags & flags::ROVS != 0 {
|
||||
features |= 0x1000;
|
||||
}
|
||||
if self.flags & flags::WAVE_OPS != 0 {
|
||||
features |= 0x4000;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user