mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-20 14:31:08 +01:00
fix reading from uniform variables of type array<matCx2<T>, N>
This commit is contained in:
1 parent
c6d54d3506
commit
b4823876e6
7 files changed
+2187
-1237
No files matched your search
@@ -3338,7 +3338,9 @@ impl<'a, W: fmt::Write> super::Writer<'a, W> {
|
||||
rows: crate::VectorSize::Bi,
|
||||
width: 4,
|
||||
}) = get_inner_matrix_of_struct_array_member(module, base, func_ctx, true)
|
||||
.or_else(|| get_global_uniform_matrix(module, base, func_ctx))
|
||||
.or_else(|| {
|
||||
get_inner_matrix_of_global_uniform(module, base, func_ctx, true)
|
||||
})
|
||||
{
|
||||
write!(self.out, "__get_col_of_mat{}x2(", columns as u8)?;
|
||||
self.write_expr(module, base, func_ctx)?;
|
||||
@@ -3462,7 +3464,9 @@ impl<'a, W: fmt::Write> super::Writer<'a, W> {
|
||||
width: 4,
|
||||
..
|
||||
}) = get_inner_matrix_of_struct_array_member(module, base, func_ctx, true)
|
||||
.or_else(|| get_global_uniform_matrix(module, base, func_ctx))
|
||||
.or_else(|| {
|
||||
get_inner_matrix_of_global_uniform(module, base, func_ctx, true)
|
||||
})
|
||||
{
|
||||
self.write_expr(module, base, func_ctx)?;
|
||||
write!(self.out, "._{index}")?;
|
||||
@@ -3811,8 +3815,9 @@ impl<'a, W: fmt::Write> super::Writer<'a, W> {
|
||||
}) = get_inner_matrix_of_struct_array_member(
|
||||
module, pointer, func_ctx, false,
|
||||
)
|
||||
.or_else(|| get_inner_matrix_of_global_uniform(module, pointer, func_ctx))
|
||||
{
|
||||
.or_else(|| {
|
||||
get_inner_matrix_of_global_uniform(module, pointer, func_ctx, false)
|
||||
}) {
|
||||
let mut resolved = func_ctx.resolve_type(pointer, &module.types);
|
||||
let ptr_tr = resolved.pointer_base_type();
|
||||
if let Some(ptr_ty) =
|
||||
@@ -5018,44 +5023,15 @@ pub(super) fn get_inner_matrix_of_struct_array_member(
|
||||
None
|
||||
}
|
||||
|
||||
/// Simpler version of get_inner_matrix_of_global_uniform that only looks at the
|
||||
/// immediate expression, rather than traversing an access chain.
|
||||
fn get_global_uniform_matrix(
|
||||
module: &Module,
|
||||
base: Handle<crate::Expression>,
|
||||
func_ctx: &back::FunctionCtx<'_>,
|
||||
) -> Option<MatrixType> {
|
||||
let base_tr = func_ctx
|
||||
.resolve_type(base, &module.types)
|
||||
.pointer_base_type();
|
||||
let base_ty = base_tr.as_ref().map(|tr| tr.inner_with(&module.types));
|
||||
match (&func_ctx.expressions[base], base_ty) {
|
||||
(
|
||||
&crate::Expression::GlobalVariable(handle),
|
||||
Some(&TypeInner::Matrix {
|
||||
columns,
|
||||
rows,
|
||||
scalar,
|
||||
}),
|
||||
) if module.global_variables[handle].space == crate::AddressSpace::Uniform => {
|
||||
Some(MatrixType {
|
||||
columns,
|
||||
rows,
|
||||
width: scalar.width,
|
||||
})
|
||||
}
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
||||
/// Returns the matrix data if the access chain starting at `base`:
|
||||
/// - starts with an expression with resolved type of [`TypeInner::Matrix`]
|
||||
/// - contains zero or more expressions with resolved type of [`TypeInner::Array`] of [`TypeInner::Matrix`]
|
||||
/// - ends with an [`Expression::GlobalVariable`](crate::Expression::GlobalVariable) in [`AddressSpace::Uniform`](crate::AddressSpace::Uniform)
|
||||
/// - starts with an expression with resolved type of [`TypeInner::Matrix`], or
|
||||
/// - contains zero or more expressions with resolved type of [`TypeInner::Array`] of [`TypeInner::Matrix`] if `direct = false`
|
||||
/// - and ends with an [`Expression::GlobalVariable`](crate::Expression::GlobalVariable) in [`AddressSpace::Uniform`](crate::AddressSpace::Uniform)
|
||||
fn get_inner_matrix_of_global_uniform(
|
||||
module: &Module,
|
||||
base: Handle<crate::Expression>,
|
||||
func_ctx: &back::FunctionCtx<'_>,
|
||||
direct: bool,
|
||||
) -> Option<MatrixType> {
|
||||
let mut mat_data = None;
|
||||
let mut array_base = None;
|
||||
@@ -5080,7 +5056,9 @@ fn get_inner_matrix_of_global_uniform(
|
||||
})
|
||||
}
|
||||
TypeInner::Array { base, .. } => {
|
||||
array_base = Some(base);
|
||||
if !direct {
|
||||
array_base = Some(base);
|
||||
}
|
||||
}
|
||||
_ => break,
|
||||
}
|
||||
|
||||
@@ -100,14 +100,76 @@ fn access_sm() {
|
||||
s_sm.m[idx][idx] = l_u_e_vv;
|
||||
}
|
||||
|
||||
@group(2) @binding(0)
|
||||
var<storage, read_write> s_am: array<Mat, 4>;
|
||||
|
||||
@group(2) @binding(1)
|
||||
var<uniform> u_am: array<Mat, 4>;
|
||||
|
||||
fn access_am() {
|
||||
var idx = 1;
|
||||
idx--;
|
||||
|
||||
// loads from storage
|
||||
let l_s_a = s_am;
|
||||
let l_s_m_c = s_am[0];
|
||||
let l_s_m_v = s_am[idx];
|
||||
let l_s_c_cc = s_am[0][0];
|
||||
let l_s_c_cv = s_am[0][idx];
|
||||
let l_s_c_vc = s_am[idx][0];
|
||||
let l_s_c_vv = s_am[idx][idx];
|
||||
let l_s_e_ccc = s_am[0][0][0];
|
||||
let l_s_e_ccv = s_am[0][0][idx];
|
||||
let l_s_e_cvc = s_am[0][idx][0];
|
||||
let l_s_e_cvv = s_am[0][idx][idx];
|
||||
let l_s_e_vcc = s_am[idx][0][0];
|
||||
let l_s_e_vcv = s_am[idx][0][idx];
|
||||
let l_s_e_vvc = s_am[idx][idx][0];
|
||||
let l_s_e_vvv = s_am[idx][idx][idx];
|
||||
|
||||
// loads from uniform
|
||||
let l_u_a = u_am;
|
||||
let l_u_m_c = u_am[0];
|
||||
let l_u_m_v = u_am[idx];
|
||||
let l_u_c_cc = u_am[0][0];
|
||||
let l_u_c_cv = u_am[0][idx];
|
||||
let l_u_c_vc = u_am[idx][0];
|
||||
let l_u_c_vv = u_am[idx][idx];
|
||||
let l_u_e_ccc = u_am[0][0][0];
|
||||
let l_u_e_ccv = u_am[0][0][idx];
|
||||
let l_u_e_cvc = u_am[0][idx][0];
|
||||
let l_u_e_cvv = u_am[0][idx][idx];
|
||||
let l_u_e_vcc = u_am[idx][0][0];
|
||||
let l_u_e_vcv = u_am[idx][0][idx];
|
||||
let l_u_e_vvc = u_am[idx][idx][0];
|
||||
let l_u_e_vvv = u_am[idx][idx][idx];
|
||||
|
||||
// stores to storage
|
||||
s_am = l_u_a;
|
||||
s_am[0] = l_u_m_c;
|
||||
s_am[idx] = l_u_m_v;
|
||||
s_am[0][0] = l_u_c_cc;
|
||||
s_am[0][idx] = l_u_c_cv;
|
||||
s_am[idx][0] = l_u_c_vc;
|
||||
s_am[idx][idx] = l_u_c_vv;
|
||||
s_am[0][0][0] = l_u_e_ccc;
|
||||
s_am[0][0][idx] = l_u_e_ccv;
|
||||
s_am[0][idx][0] = l_u_e_cvc;
|
||||
s_am[0][idx][idx] = l_u_e_cvv;
|
||||
s_am[idx][0][0] = l_u_e_vcc;
|
||||
s_am[idx][0][idx] = l_u_e_vcv;
|
||||
s_am[idx][idx][0] = l_u_e_vvc;
|
||||
s_am[idx][idx][idx] = l_u_e_vvv;
|
||||
}
|
||||
|
||||
struct StructWithArrayOfStructOfMat {
|
||||
a: array<StructWithMat, 4>,
|
||||
}
|
||||
|
||||
@group(2) @binding(0)
|
||||
@group(3) @binding(0)
|
||||
var<storage, read_write> s_sasm: StructWithArrayOfStructOfMat;
|
||||
|
||||
@group(2) @binding(1)
|
||||
@group(3) @binding(1)
|
||||
var<uniform> u_sasm: StructWithArrayOfStructOfMat;
|
||||
|
||||
fn access_sasm() {
|
||||
@@ -173,5 +235,6 @@ fn access_sasm() {
|
||||
fn main() {
|
||||
access_m();
|
||||
access_sm();
|
||||
access_am();
|
||||
access_sasm();
|
||||
}
|
||||
@@ -96,14 +96,76 @@ fn access_sm() {
|
||||
s_sm.m[idx][idx] = l_u_e_vv;
|
||||
}
|
||||
|
||||
@group(2) @binding(0)
|
||||
var<storage, read_write> s_am: array<Mat, 4>;
|
||||
|
||||
@group(2) @binding(1)
|
||||
var<uniform> u_am: array<Mat, 4>;
|
||||
|
||||
fn access_am() {
|
||||
var idx = 1;
|
||||
idx--;
|
||||
|
||||
// loads from storage
|
||||
let l_s_a = s_am;
|
||||
let l_s_m_c = s_am[0];
|
||||
let l_s_m_v = s_am[idx];
|
||||
let l_s_c_cc = s_am[0][0];
|
||||
let l_s_c_cv = s_am[0][idx];
|
||||
let l_s_c_vc = s_am[idx][0];
|
||||
let l_s_c_vv = s_am[idx][idx];
|
||||
let l_s_e_ccc = s_am[0][0][0];
|
||||
let l_s_e_ccv = s_am[0][0][idx];
|
||||
let l_s_e_cvc = s_am[0][idx][0];
|
||||
let l_s_e_cvv = s_am[0][idx][idx];
|
||||
let l_s_e_vcc = s_am[idx][0][0];
|
||||
let l_s_e_vcv = s_am[idx][0][idx];
|
||||
let l_s_e_vvc = s_am[idx][idx][0];
|
||||
let l_s_e_vvv = s_am[idx][idx][idx];
|
||||
|
||||
// loads from uniform
|
||||
let l_u_a = u_am;
|
||||
let l_u_m_c = u_am[0];
|
||||
let l_u_m_v = u_am[idx];
|
||||
let l_u_c_cc = u_am[0][0];
|
||||
let l_u_c_cv = u_am[0][idx];
|
||||
let l_u_c_vc = u_am[idx][0];
|
||||
let l_u_c_vv = u_am[idx][idx];
|
||||
let l_u_e_ccc = u_am[0][0][0];
|
||||
let l_u_e_ccv = u_am[0][0][idx];
|
||||
let l_u_e_cvc = u_am[0][idx][0];
|
||||
let l_u_e_cvv = u_am[0][idx][idx];
|
||||
let l_u_e_vcc = u_am[idx][0][0];
|
||||
let l_u_e_vcv = u_am[idx][0][idx];
|
||||
let l_u_e_vvc = u_am[idx][idx][0];
|
||||
let l_u_e_vvv = u_am[idx][idx][idx];
|
||||
|
||||
// stores to storage
|
||||
s_am = l_u_a;
|
||||
s_am[0] = l_u_m_c;
|
||||
s_am[idx] = l_u_m_v;
|
||||
s_am[0][0] = l_u_c_cc;
|
||||
s_am[0][idx] = l_u_c_cv;
|
||||
s_am[idx][0] = l_u_c_vc;
|
||||
s_am[idx][idx] = l_u_c_vv;
|
||||
s_am[0][0][0] = l_u_e_ccc;
|
||||
s_am[0][0][idx] = l_u_e_ccv;
|
||||
s_am[0][idx][0] = l_u_e_cvc;
|
||||
s_am[0][idx][idx] = l_u_e_cvv;
|
||||
s_am[idx][0][0] = l_u_e_vcc;
|
||||
s_am[idx][0][idx] = l_u_e_vcv;
|
||||
s_am[idx][idx][0] = l_u_e_vvc;
|
||||
s_am[idx][idx][idx] = l_u_e_vvv;
|
||||
}
|
||||
|
||||
struct StructWithArrayOfStructOfMat {
|
||||
a: array<StructWithMat, 4>,
|
||||
}
|
||||
|
||||
@group(2) @binding(0)
|
||||
@group(3) @binding(0)
|
||||
var<storage, read_write> s_sasm: StructWithArrayOfStructOfMat;
|
||||
|
||||
@group(2) @binding(1)
|
||||
@group(3) @binding(1)
|
||||
var<uniform> u_sasm: StructWithArrayOfStructOfMat;
|
||||
|
||||
fn access_sasm() {
|
||||
@@ -169,5 +231,6 @@ fn access_sasm() {
|
||||
fn main() {
|
||||
access_m();
|
||||
access_sm();
|
||||
access_am();
|
||||
access_sasm();
|
||||
}
|
||||
@@ -31,8 +31,10 @@ RWByteAddressBuffer s_m : register(u0);
|
||||
cbuffer u_m : register(b1) { __mat2x2 u_m; }
|
||||
RWByteAddressBuffer s_sm : register(u0, space1);
|
||||
cbuffer u_sm : register(b1, space1) { StructWithMat u_sm; }
|
||||
RWByteAddressBuffer s_sasm : register(u0, space2);
|
||||
cbuffer u_sasm : register(b1, space2) { StructWithArrayOfStructOfMat u_sasm; }
|
||||
RWByteAddressBuffer s_am : register(u0, space2);
|
||||
cbuffer u_am : register(b1, space2) { __mat2x2 u_am[4]; }
|
||||
RWByteAddressBuffer s_sasm : register(u0, space3);
|
||||
cbuffer u_sasm : register(b1, space3) { StructWithArrayOfStructOfMat u_sasm; }
|
||||
|
||||
void access_m()
|
||||
{
|
||||
@@ -171,6 +173,147 @@ void access_sm()
|
||||
return;
|
||||
}
|
||||
|
||||
typedef float2x2 ret_Constructarray4_float2x2_[4];
|
||||
ret_Constructarray4_float2x2_ Constructarray4_float2x2_(float2x2 arg0, float2x2 arg1, float2x2 arg2, float2x2 arg3) {
|
||||
float2x2 ret[4] = { arg0, arg1, arg2, arg3 };
|
||||
return ret;
|
||||
}
|
||||
|
||||
void access_am()
|
||||
{
|
||||
int idx_2 = int(1);
|
||||
|
||||
int _e3 = idx_2;
|
||||
idx_2 = asint(asuint(_e3) - asuint(int(1)));
|
||||
float2x2 l_s_a[4] = Constructarray4_float2x2_(float2x2(asfloat(s_am.Load2(0+0)), asfloat(s_am.Load2(0+8))), float2x2(asfloat(s_am.Load2(16+0)), asfloat(s_am.Load2(16+8))), float2x2(asfloat(s_am.Load2(32+0)), asfloat(s_am.Load2(32+8))), float2x2(asfloat(s_am.Load2(48+0)), asfloat(s_am.Load2(48+8))));
|
||||
float2x2 l_s_m_c = float2x2(asfloat(s_am.Load2(0+0)), asfloat(s_am.Load2(0+8)));
|
||||
int _e11 = idx_2;
|
||||
float2x2 l_s_m_v = float2x2(asfloat(s_am.Load2(_e11*16+0)), asfloat(s_am.Load2(_e11*16+8)));
|
||||
float2 l_s_c_cc = asfloat(s_am.Load2(0+0));
|
||||
int _e20 = idx_2;
|
||||
float2 l_s_c_cv = asfloat(s_am.Load2(_e20*8+0));
|
||||
int _e24 = idx_2;
|
||||
float2 l_s_c_vc = asfloat(s_am.Load2(0+_e24*16));
|
||||
int _e29 = idx_2;
|
||||
int _e31 = idx_2;
|
||||
float2 l_s_c_vv = asfloat(s_am.Load2(_e31*8+_e29*16));
|
||||
float l_s_e_ccc = asfloat(s_am.Load(0+0+0));
|
||||
int _e42 = idx_2;
|
||||
float l_s_e_ccv = asfloat(s_am.Load(_e42*4+0+0));
|
||||
int _e47 = idx_2;
|
||||
float l_s_e_cvc = asfloat(s_am.Load(0+_e47*8+0));
|
||||
int _e53 = idx_2;
|
||||
int _e55 = idx_2;
|
||||
float l_s_e_cvv = asfloat(s_am.Load(_e55*4+_e53*8+0));
|
||||
int _e59 = idx_2;
|
||||
float l_s_e_vcc = asfloat(s_am.Load(0+0+_e59*16));
|
||||
int _e65 = idx_2;
|
||||
int _e68 = idx_2;
|
||||
float l_s_e_vcv = asfloat(s_am.Load(_e68*4+0+_e65*16));
|
||||
int _e72 = idx_2;
|
||||
int _e74 = idx_2;
|
||||
float l_s_e_vvc = asfloat(s_am.Load(0+_e74*8+_e72*16));
|
||||
int _e79 = idx_2;
|
||||
int _e81 = idx_2;
|
||||
int _e83 = idx_2;
|
||||
float l_s_e_vvv = asfloat(s_am.Load(_e83*4+_e81*8+_e79*16));
|
||||
float2x2 l_u_a[4] = ((float2x2[4])u_am);
|
||||
float2x2 l_u_m_c = ((float2x2)u_am[0]);
|
||||
int _e92 = idx_2;
|
||||
float2x2 l_u_m_v = ((float2x2)u_am[_e92]);
|
||||
float2 l_u_c_cc = u_am[0]._0;
|
||||
int _e101 = idx_2;
|
||||
float2 l_u_c_cv = __get_col_of_mat2x2(u_am[0], _e101);
|
||||
int _e105 = idx_2;
|
||||
float2 l_u_c_vc = u_am[_e105]._0;
|
||||
int _e110 = idx_2;
|
||||
int _e112 = idx_2;
|
||||
float2 l_u_c_vv = __get_col_of_mat2x2(u_am[_e110], _e112);
|
||||
float l_u_e_ccc = u_am[0]._0.x;
|
||||
int _e123 = idx_2;
|
||||
float l_u_e_ccv = u_am[0]._0[_e123];
|
||||
int _e128 = idx_2;
|
||||
float l_u_e_cvc = __get_col_of_mat2x2(u_am[0], _e128).x;
|
||||
int _e134 = idx_2;
|
||||
int _e136 = idx_2;
|
||||
float l_u_e_cvv = __get_col_of_mat2x2(u_am[0], _e134)[_e136];
|
||||
int _e140 = idx_2;
|
||||
float l_u_e_vcc = u_am[_e140]._0.x;
|
||||
int _e146 = idx_2;
|
||||
int _e149 = idx_2;
|
||||
float l_u_e_vcv = u_am[_e146]._0[_e149];
|
||||
int _e153 = idx_2;
|
||||
int _e155 = idx_2;
|
||||
float l_u_e_vvc = __get_col_of_mat2x2(u_am[_e153], _e155).x;
|
||||
int _e160 = idx_2;
|
||||
int _e162 = idx_2;
|
||||
int _e164 = idx_2;
|
||||
float l_u_e_vvv = __get_col_of_mat2x2(u_am[_e160], _e162)[_e164];
|
||||
{
|
||||
float2x2 _value2[4] = l_u_a;
|
||||
{
|
||||
float2x2 _value3 = _value2[0];
|
||||
s_am.Store2(0+0, asuint(_value3[0]));
|
||||
s_am.Store2(0+8, asuint(_value3[1]));
|
||||
}
|
||||
{
|
||||
float2x2 _value3 = _value2[1];
|
||||
s_am.Store2(16+0, asuint(_value3[0]));
|
||||
s_am.Store2(16+8, asuint(_value3[1]));
|
||||
}
|
||||
{
|
||||
float2x2 _value3 = _value2[2];
|
||||
s_am.Store2(32+0, asuint(_value3[0]));
|
||||
s_am.Store2(32+8, asuint(_value3[1]));
|
||||
}
|
||||
{
|
||||
float2x2 _value3 = _value2[3];
|
||||
s_am.Store2(48+0, asuint(_value3[0]));
|
||||
s_am.Store2(48+8, asuint(_value3[1]));
|
||||
}
|
||||
}
|
||||
{
|
||||
float2x2 _value2 = l_u_m_c;
|
||||
s_am.Store2(0+0, asuint(_value2[0]));
|
||||
s_am.Store2(0+8, asuint(_value2[1]));
|
||||
}
|
||||
int _e171 = idx_2;
|
||||
{
|
||||
float2x2 _value2 = l_u_m_v;
|
||||
s_am.Store2(_e171*16+0, asuint(_value2[0]));
|
||||
s_am.Store2(_e171*16+8, asuint(_value2[1]));
|
||||
}
|
||||
s_am.Store2(0+0, asuint(l_u_c_cc));
|
||||
int _e178 = idx_2;
|
||||
s_am.Store2(_e178*8+0, asuint(l_u_c_cv));
|
||||
int _e181 = idx_2;
|
||||
s_am.Store2(0+_e181*16, asuint(l_u_c_vc));
|
||||
int _e185 = idx_2;
|
||||
int _e187 = idx_2;
|
||||
s_am.Store2(_e187*8+_e185*16, asuint(l_u_c_vv));
|
||||
s_am.Store(0+0+0, asuint(l_u_e_ccc));
|
||||
int _e196 = idx_2;
|
||||
s_am.Store(_e196*4+0+0, asuint(l_u_e_ccv));
|
||||
int _e200 = idx_2;
|
||||
s_am.Store(0+_e200*8+0, asuint(l_u_e_cvc));
|
||||
int _e205 = idx_2;
|
||||
int _e207 = idx_2;
|
||||
s_am.Store(_e207*4+_e205*8+0, asuint(l_u_e_cvv));
|
||||
int _e210 = idx_2;
|
||||
s_am.Store(0+0+_e210*16, asuint(l_u_e_vcc));
|
||||
int _e215 = idx_2;
|
||||
int _e218 = idx_2;
|
||||
s_am.Store(_e218*4+0+_e215*16, asuint(l_u_e_vcv));
|
||||
int _e221 = idx_2;
|
||||
int _e223 = idx_2;
|
||||
s_am.Store(0+_e223*8+_e221*16, asuint(l_u_e_vvc));
|
||||
int _e227 = idx_2;
|
||||
int _e229 = idx_2;
|
||||
int _e231 = idx_2;
|
||||
s_am.Store(_e231*4+_e229*8+_e227*16, asuint(l_u_e_vvv));
|
||||
return;
|
||||
}
|
||||
|
||||
typedef StructWithMat ret_Constructarray4_StructWithMat_[4];
|
||||
ret_Constructarray4_StructWithMat_ Constructarray4_StructWithMat_(StructWithMat arg0, StructWithMat arg1, StructWithMat arg2, StructWithMat arg3) {
|
||||
StructWithMat ret[4] = { arg0, arg1, arg2, arg3 };
|
||||
@@ -185,76 +328,76 @@ StructWithArrayOfStructOfMat ConstructStructWithArrayOfStructOfMat(StructWithMat
|
||||
|
||||
void access_sasm()
|
||||
{
|
||||
int idx_2 = int(1);
|
||||
int idx_3 = int(1);
|
||||
|
||||
int _e3 = idx_2;
|
||||
idx_2 = asint(asuint(_e3) - asuint(int(1)));
|
||||
int _e3 = idx_3;
|
||||
idx_3 = asint(asuint(_e3) - asuint(int(1)));
|
||||
StructWithArrayOfStructOfMat l_s_s_1 = ConstructStructWithArrayOfStructOfMat(Constructarray4_StructWithMat_(ConstructStructWithMat(float2x2(asfloat(s_sasm.Load2(0+0+0+0)), asfloat(s_sasm.Load2(0+0+0+8)))), ConstructStructWithMat(float2x2(asfloat(s_sasm.Load2(0+16+0+0)), asfloat(s_sasm.Load2(0+16+0+8)))), ConstructStructWithMat(float2x2(asfloat(s_sasm.Load2(0+32+0+0)), asfloat(s_sasm.Load2(0+32+0+8)))), ConstructStructWithMat(float2x2(asfloat(s_sasm.Load2(0+48+0+0)), asfloat(s_sasm.Load2(0+48+0+8))))));
|
||||
StructWithMat l_s_a[4] = Constructarray4_StructWithMat_(ConstructStructWithMat(float2x2(asfloat(s_sasm.Load2(0+0+0+0)), asfloat(s_sasm.Load2(0+0+0+8)))), ConstructStructWithMat(float2x2(asfloat(s_sasm.Load2(0+16+0+0)), asfloat(s_sasm.Load2(0+16+0+8)))), ConstructStructWithMat(float2x2(asfloat(s_sasm.Load2(0+32+0+0)), asfloat(s_sasm.Load2(0+32+0+8)))), ConstructStructWithMat(float2x2(asfloat(s_sasm.Load2(0+48+0+0)), asfloat(s_sasm.Load2(0+48+0+8)))));
|
||||
float2x2 l_s_m_c = float2x2(asfloat(s_sasm.Load2(0+0+0+0)), asfloat(s_sasm.Load2(0+0+0+8)));
|
||||
int _e17 = idx_2;
|
||||
float2x2 l_s_m_v = float2x2(asfloat(s_sasm.Load2(0+_e17*16+0+0)), asfloat(s_sasm.Load2(0+_e17*16+0+8)));
|
||||
float2 l_s_c_cc = asfloat(s_sasm.Load2(0+0+0+0));
|
||||
int _e31 = idx_2;
|
||||
float2 l_s_c_cv = asfloat(s_sasm.Load2(_e31*8+0+0+0));
|
||||
int _e36 = idx_2;
|
||||
float2 l_s_c_vc = asfloat(s_sasm.Load2(0+0+_e36*16+0));
|
||||
int _e43 = idx_2;
|
||||
int _e46 = idx_2;
|
||||
float2 l_s_c_vv = asfloat(s_sasm.Load2(_e46*8+0+_e43*16+0));
|
||||
float l_s_e_ccc = asfloat(s_sasm.Load(0+0+0+0+0));
|
||||
int _e61 = idx_2;
|
||||
float l_s_e_ccv = asfloat(s_sasm.Load(_e61*4+0+0+0+0));
|
||||
int _e68 = idx_2;
|
||||
float l_s_e_cvc = asfloat(s_sasm.Load(0+_e68*8+0+0+0));
|
||||
int _e76 = idx_2;
|
||||
int _e78 = idx_2;
|
||||
float l_s_e_cvv = asfloat(s_sasm.Load(_e78*4+_e76*8+0+0+0));
|
||||
int _e83 = idx_2;
|
||||
float l_s_e_vcc = asfloat(s_sasm.Load(0+0+0+_e83*16+0));
|
||||
int _e91 = idx_2;
|
||||
int _e95 = idx_2;
|
||||
float l_s_e_vcv = asfloat(s_sasm.Load(_e95*4+0+0+_e91*16+0));
|
||||
int _e100 = idx_2;
|
||||
int _e103 = idx_2;
|
||||
float l_s_e_vvc = asfloat(s_sasm.Load(0+_e103*8+0+_e100*16+0));
|
||||
int _e109 = idx_2;
|
||||
int _e112 = idx_2;
|
||||
int _e114 = idx_2;
|
||||
float l_s_e_vvv = asfloat(s_sasm.Load(_e114*4+_e112*8+0+_e109*16+0));
|
||||
StructWithMat l_s_a_1[4] = Constructarray4_StructWithMat_(ConstructStructWithMat(float2x2(asfloat(s_sasm.Load2(0+0+0+0)), asfloat(s_sasm.Load2(0+0+0+8)))), ConstructStructWithMat(float2x2(asfloat(s_sasm.Load2(0+16+0+0)), asfloat(s_sasm.Load2(0+16+0+8)))), ConstructStructWithMat(float2x2(asfloat(s_sasm.Load2(0+32+0+0)), asfloat(s_sasm.Load2(0+32+0+8)))), ConstructStructWithMat(float2x2(asfloat(s_sasm.Load2(0+48+0+0)), asfloat(s_sasm.Load2(0+48+0+8)))));
|
||||
float2x2 l_s_m_c_1 = float2x2(asfloat(s_sasm.Load2(0+0+0+0)), asfloat(s_sasm.Load2(0+0+0+8)));
|
||||
int _e17 = idx_3;
|
||||
float2x2 l_s_m_v_1 = float2x2(asfloat(s_sasm.Load2(0+_e17*16+0+0)), asfloat(s_sasm.Load2(0+_e17*16+0+8)));
|
||||
float2 l_s_c_cc_1 = asfloat(s_sasm.Load2(0+0+0+0));
|
||||
int _e31 = idx_3;
|
||||
float2 l_s_c_cv_1 = asfloat(s_sasm.Load2(_e31*8+0+0+0));
|
||||
int _e36 = idx_3;
|
||||
float2 l_s_c_vc_1 = asfloat(s_sasm.Load2(0+0+_e36*16+0));
|
||||
int _e43 = idx_3;
|
||||
int _e46 = idx_3;
|
||||
float2 l_s_c_vv_1 = asfloat(s_sasm.Load2(_e46*8+0+_e43*16+0));
|
||||
float l_s_e_ccc_1 = asfloat(s_sasm.Load(0+0+0+0+0));
|
||||
int _e61 = idx_3;
|
||||
float l_s_e_ccv_1 = asfloat(s_sasm.Load(_e61*4+0+0+0+0));
|
||||
int _e68 = idx_3;
|
||||
float l_s_e_cvc_1 = asfloat(s_sasm.Load(0+_e68*8+0+0+0));
|
||||
int _e76 = idx_3;
|
||||
int _e78 = idx_3;
|
||||
float l_s_e_cvv_1 = asfloat(s_sasm.Load(_e78*4+_e76*8+0+0+0));
|
||||
int _e83 = idx_3;
|
||||
float l_s_e_vcc_1 = asfloat(s_sasm.Load(0+0+0+_e83*16+0));
|
||||
int _e91 = idx_3;
|
||||
int _e95 = idx_3;
|
||||
float l_s_e_vcv_1 = asfloat(s_sasm.Load(_e95*4+0+0+_e91*16+0));
|
||||
int _e100 = idx_3;
|
||||
int _e103 = idx_3;
|
||||
float l_s_e_vvc_1 = asfloat(s_sasm.Load(0+_e103*8+0+_e100*16+0));
|
||||
int _e109 = idx_3;
|
||||
int _e112 = idx_3;
|
||||
int _e114 = idx_3;
|
||||
float l_s_e_vvv_1 = asfloat(s_sasm.Load(_e114*4+_e112*8+0+_e109*16+0));
|
||||
StructWithArrayOfStructOfMat l_u_s_1 = u_sasm;
|
||||
StructWithMat l_u_a[4] = u_sasm.a;
|
||||
float2x2 l_u_m_c = GetMatmOnStructWithMat(u_sasm.a[0]);
|
||||
int _e129 = idx_2;
|
||||
float2x2 l_u_m_v = GetMatmOnStructWithMat(u_sasm.a[_e129]);
|
||||
float2 l_u_c_cc = GetMatmOnStructWithMat(u_sasm.a[0])[0];
|
||||
int _e143 = idx_2;
|
||||
float2 l_u_c_cv = GetMatmOnStructWithMat(u_sasm.a[0])[_e143];
|
||||
int _e148 = idx_2;
|
||||
float2 l_u_c_vc = GetMatmOnStructWithMat(u_sasm.a[_e148])[0];
|
||||
int _e155 = idx_2;
|
||||
int _e158 = idx_2;
|
||||
float2 l_u_c_vv = GetMatmOnStructWithMat(u_sasm.a[_e155])[_e158];
|
||||
float l_u_e_ccc = GetMatmOnStructWithMat(u_sasm.a[0])[0].x;
|
||||
int _e173 = idx_2;
|
||||
float l_u_e_ccv = GetMatmOnStructWithMat(u_sasm.a[0])[0][_e173];
|
||||
int _e180 = idx_2;
|
||||
float l_u_e_cvc = GetMatmOnStructWithMat(u_sasm.a[0])[_e180].x;
|
||||
int _e188 = idx_2;
|
||||
int _e190 = idx_2;
|
||||
float l_u_e_cvv = GetMatmOnStructWithMat(u_sasm.a[0])[_e188][_e190];
|
||||
int _e195 = idx_2;
|
||||
float l_u_e_vcc = GetMatmOnStructWithMat(u_sasm.a[_e195])[0].x;
|
||||
int _e203 = idx_2;
|
||||
int _e207 = idx_2;
|
||||
float l_u_e_vcv = GetMatmOnStructWithMat(u_sasm.a[_e203])[0][_e207];
|
||||
int _e212 = idx_2;
|
||||
int _e215 = idx_2;
|
||||
float l_u_e_vvc = GetMatmOnStructWithMat(u_sasm.a[_e212])[_e215].x;
|
||||
int _e221 = idx_2;
|
||||
int _e224 = idx_2;
|
||||
int _e226 = idx_2;
|
||||
float l_u_e_vvv = GetMatmOnStructWithMat(u_sasm.a[_e221])[_e224][_e226];
|
||||
StructWithMat l_u_a_1[4] = u_sasm.a;
|
||||
float2x2 l_u_m_c_1 = GetMatmOnStructWithMat(u_sasm.a[0]);
|
||||
int _e129 = idx_3;
|
||||
float2x2 l_u_m_v_1 = GetMatmOnStructWithMat(u_sasm.a[_e129]);
|
||||
float2 l_u_c_cc_1 = GetMatmOnStructWithMat(u_sasm.a[0])[0];
|
||||
int _e143 = idx_3;
|
||||
float2 l_u_c_cv_1 = GetMatmOnStructWithMat(u_sasm.a[0])[_e143];
|
||||
int _e148 = idx_3;
|
||||
float2 l_u_c_vc_1 = GetMatmOnStructWithMat(u_sasm.a[_e148])[0];
|
||||
int _e155 = idx_3;
|
||||
int _e158 = idx_3;
|
||||
float2 l_u_c_vv_1 = GetMatmOnStructWithMat(u_sasm.a[_e155])[_e158];
|
||||
float l_u_e_ccc_1 = GetMatmOnStructWithMat(u_sasm.a[0])[0].x;
|
||||
int _e173 = idx_3;
|
||||
float l_u_e_ccv_1 = GetMatmOnStructWithMat(u_sasm.a[0])[0][_e173];
|
||||
int _e180 = idx_3;
|
||||
float l_u_e_cvc_1 = GetMatmOnStructWithMat(u_sasm.a[0])[_e180].x;
|
||||
int _e188 = idx_3;
|
||||
int _e190 = idx_3;
|
||||
float l_u_e_cvv_1 = GetMatmOnStructWithMat(u_sasm.a[0])[_e188][_e190];
|
||||
int _e195 = idx_3;
|
||||
float l_u_e_vcc_1 = GetMatmOnStructWithMat(u_sasm.a[_e195])[0].x;
|
||||
int _e203 = idx_3;
|
||||
int _e207 = idx_3;
|
||||
float l_u_e_vcv_1 = GetMatmOnStructWithMat(u_sasm.a[_e203])[0][_e207];
|
||||
int _e212 = idx_3;
|
||||
int _e215 = idx_3;
|
||||
float l_u_e_vvc_1 = GetMatmOnStructWithMat(u_sasm.a[_e212])[_e215].x;
|
||||
int _e221 = idx_3;
|
||||
int _e224 = idx_3;
|
||||
int _e226 = idx_3;
|
||||
float l_u_e_vvv_1 = GetMatmOnStructWithMat(u_sasm.a[_e221])[_e224][_e226];
|
||||
{
|
||||
StructWithArrayOfStructOfMat _value2 = l_u_s_1;
|
||||
{
|
||||
@@ -290,7 +433,7 @@ void access_sasm()
|
||||
}
|
||||
}
|
||||
{
|
||||
StructWithMat _value2[4] = l_u_a;
|
||||
StructWithMat _value2[4] = l_u_a_1;
|
||||
{
|
||||
StructWithMat _value3 = _value2[0];
|
||||
{
|
||||
@@ -321,44 +464,44 @@ void access_sasm()
|
||||
}
|
||||
}
|
||||
{
|
||||
float2x2 _value2 = l_u_m_c;
|
||||
float2x2 _value2 = l_u_m_c_1;
|
||||
s_sasm.Store2(0+0+0+0, asuint(_value2[0]));
|
||||
s_sasm.Store2(0+0+0+8, asuint(_value2[1]));
|
||||
}
|
||||
int _e238 = idx_2;
|
||||
int _e238 = idx_3;
|
||||
{
|
||||
float2x2 _value2 = l_u_m_v;
|
||||
float2x2 _value2 = l_u_m_v_1;
|
||||
s_sasm.Store2(0+_e238*16+0+0, asuint(_value2[0]));
|
||||
s_sasm.Store2(0+_e238*16+0+8, asuint(_value2[1]));
|
||||
}
|
||||
s_sasm.Store2(0+0+0+0, asuint(l_u_c_cc));
|
||||
int _e250 = idx_2;
|
||||
s_sasm.Store2(_e250*8+0+0+0, asuint(l_u_c_cv));
|
||||
int _e254 = idx_2;
|
||||
s_sasm.Store2(0+0+_e254*16+0, asuint(l_u_c_vc));
|
||||
int _e260 = idx_2;
|
||||
int _e263 = idx_2;
|
||||
s_sasm.Store2(_e263*8+0+_e260*16+0, asuint(l_u_c_vv));
|
||||
s_sasm.Store(0+0+0+0+0, asuint(l_u_e_ccc));
|
||||
int _e276 = idx_2;
|
||||
s_sasm.Store(_e276*4+0+0+0+0, asuint(l_u_e_ccv));
|
||||
int _e282 = idx_2;
|
||||
s_sasm.Store(0+_e282*8+0+0+0, asuint(l_u_e_cvc));
|
||||
int _e289 = idx_2;
|
||||
int _e291 = idx_2;
|
||||
s_sasm.Store(_e291*4+_e289*8+0+0+0, asuint(l_u_e_cvv));
|
||||
int _e295 = idx_2;
|
||||
s_sasm.Store(0+0+0+_e295*16+0, asuint(l_u_e_vcc));
|
||||
int _e302 = idx_2;
|
||||
int _e306 = idx_2;
|
||||
s_sasm.Store(_e306*4+0+0+_e302*16+0, asuint(l_u_e_vcv));
|
||||
int _e310 = idx_2;
|
||||
int _e313 = idx_2;
|
||||
s_sasm.Store(0+_e313*8+0+_e310*16+0, asuint(l_u_e_vvc));
|
||||
int _e318 = idx_2;
|
||||
int _e321 = idx_2;
|
||||
int _e323 = idx_2;
|
||||
s_sasm.Store(_e323*4+_e321*8+0+_e318*16+0, asuint(l_u_e_vvv));
|
||||
s_sasm.Store2(0+0+0+0, asuint(l_u_c_cc_1));
|
||||
int _e250 = idx_3;
|
||||
s_sasm.Store2(_e250*8+0+0+0, asuint(l_u_c_cv_1));
|
||||
int _e254 = idx_3;
|
||||
s_sasm.Store2(0+0+_e254*16+0, asuint(l_u_c_vc_1));
|
||||
int _e260 = idx_3;
|
||||
int _e263 = idx_3;
|
||||
s_sasm.Store2(_e263*8+0+_e260*16+0, asuint(l_u_c_vv_1));
|
||||
s_sasm.Store(0+0+0+0+0, asuint(l_u_e_ccc_1));
|
||||
int _e276 = idx_3;
|
||||
s_sasm.Store(_e276*4+0+0+0+0, asuint(l_u_e_ccv_1));
|
||||
int _e282 = idx_3;
|
||||
s_sasm.Store(0+_e282*8+0+0+0, asuint(l_u_e_cvc_1));
|
||||
int _e289 = idx_3;
|
||||
int _e291 = idx_3;
|
||||
s_sasm.Store(_e291*4+_e289*8+0+0+0, asuint(l_u_e_cvv_1));
|
||||
int _e295 = idx_3;
|
||||
s_sasm.Store(0+0+0+_e295*16+0, asuint(l_u_e_vcc_1));
|
||||
int _e302 = idx_3;
|
||||
int _e306 = idx_3;
|
||||
s_sasm.Store(_e306*4+0+0+_e302*16+0, asuint(l_u_e_vcv_1));
|
||||
int _e310 = idx_3;
|
||||
int _e313 = idx_3;
|
||||
s_sasm.Store(0+_e313*8+0+_e310*16+0, asuint(l_u_e_vvc_1));
|
||||
int _e318 = idx_3;
|
||||
int _e321 = idx_3;
|
||||
int _e323 = idx_3;
|
||||
s_sasm.Store(_e323*4+_e321*8+0+_e318*16+0, asuint(l_u_e_vvv_1));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -367,6 +510,7 @@ void main()
|
||||
{
|
||||
access_m();
|
||||
access_sm();
|
||||
access_am();
|
||||
access_sasm();
|
||||
return;
|
||||
}
|
||||
@@ -11,8 +11,10 @@ RWByteAddressBuffer s_m : register(u0);
|
||||
cbuffer u_m : register(b1) { row_major float3x3 u_m; }
|
||||
RWByteAddressBuffer s_sm : register(u0, space1);
|
||||
cbuffer u_sm : register(b1, space1) { StructWithMat u_sm; }
|
||||
RWByteAddressBuffer s_sasm : register(u0, space2);
|
||||
cbuffer u_sasm : register(b1, space2) { StructWithArrayOfStructOfMat u_sasm; }
|
||||
RWByteAddressBuffer s_am : register(u0, space2);
|
||||
cbuffer u_am : register(b1, space2) { row_major float3x3 u_am[4]; }
|
||||
RWByteAddressBuffer s_sasm : register(u0, space3);
|
||||
cbuffer u_sasm : register(b1, space3) { StructWithArrayOfStructOfMat u_sasm; }
|
||||
|
||||
void access_m()
|
||||
{
|
||||
@@ -131,6 +133,153 @@ void access_sm()
|
||||
return;
|
||||
}
|
||||
|
||||
typedef float3x3 ret_Constructarray4_float3x3_[4];
|
||||
ret_Constructarray4_float3x3_ Constructarray4_float3x3_(float3x3 arg0, float3x3 arg1, float3x3 arg2, float3x3 arg3) {
|
||||
float3x3 ret[4] = { arg0, arg1, arg2, arg3 };
|
||||
return ret;
|
||||
}
|
||||
|
||||
void access_am()
|
||||
{
|
||||
int idx_2 = int(1);
|
||||
|
||||
int _e3 = idx_2;
|
||||
idx_2 = asint(asuint(_e3) - asuint(int(1)));
|
||||
float3x3 l_s_a[4] = Constructarray4_float3x3_(float3x3(asfloat(s_am.Load3(0+0)), asfloat(s_am.Load3(0+16)), asfloat(s_am.Load3(0+32))), float3x3(asfloat(s_am.Load3(48+0)), asfloat(s_am.Load3(48+16)), asfloat(s_am.Load3(48+32))), float3x3(asfloat(s_am.Load3(96+0)), asfloat(s_am.Load3(96+16)), asfloat(s_am.Load3(96+32))), float3x3(asfloat(s_am.Load3(144+0)), asfloat(s_am.Load3(144+16)), asfloat(s_am.Load3(144+32))));
|
||||
float3x3 l_s_m_c = float3x3(asfloat(s_am.Load3(0+0)), asfloat(s_am.Load3(0+16)), asfloat(s_am.Load3(0+32)));
|
||||
int _e11 = idx_2;
|
||||
float3x3 l_s_m_v = float3x3(asfloat(s_am.Load3(_e11*48+0)), asfloat(s_am.Load3(_e11*48+16)), asfloat(s_am.Load3(_e11*48+32)));
|
||||
float3 l_s_c_cc = asfloat(s_am.Load3(0+0));
|
||||
int _e20 = idx_2;
|
||||
float3 l_s_c_cv = asfloat(s_am.Load3(_e20*16+0));
|
||||
int _e24 = idx_2;
|
||||
float3 l_s_c_vc = asfloat(s_am.Load3(0+_e24*48));
|
||||
int _e29 = idx_2;
|
||||
int _e31 = idx_2;
|
||||
float3 l_s_c_vv = asfloat(s_am.Load3(_e31*16+_e29*48));
|
||||
float l_s_e_ccc = asfloat(s_am.Load(0+0+0));
|
||||
int _e42 = idx_2;
|
||||
float l_s_e_ccv = asfloat(s_am.Load(_e42*4+0+0));
|
||||
int _e47 = idx_2;
|
||||
float l_s_e_cvc = asfloat(s_am.Load(0+_e47*16+0));
|
||||
int _e53 = idx_2;
|
||||
int _e55 = idx_2;
|
||||
float l_s_e_cvv = asfloat(s_am.Load(_e55*4+_e53*16+0));
|
||||
int _e59 = idx_2;
|
||||
float l_s_e_vcc = asfloat(s_am.Load(0+0+_e59*48));
|
||||
int _e65 = idx_2;
|
||||
int _e68 = idx_2;
|
||||
float l_s_e_vcv = asfloat(s_am.Load(_e68*4+0+_e65*48));
|
||||
int _e72 = idx_2;
|
||||
int _e74 = idx_2;
|
||||
float l_s_e_vvc = asfloat(s_am.Load(0+_e74*16+_e72*48));
|
||||
int _e79 = idx_2;
|
||||
int _e81 = idx_2;
|
||||
int _e83 = idx_2;
|
||||
float l_s_e_vvv = asfloat(s_am.Load(_e83*4+_e81*16+_e79*48));
|
||||
float3x3 l_u_a[4] = u_am;
|
||||
float3x3 l_u_m_c = u_am[0];
|
||||
int _e92 = idx_2;
|
||||
float3x3 l_u_m_v = u_am[_e92];
|
||||
float3 l_u_c_cc = u_am[0][0];
|
||||
int _e101 = idx_2;
|
||||
float3 l_u_c_cv = u_am[0][_e101];
|
||||
int _e105 = idx_2;
|
||||
float3 l_u_c_vc = u_am[_e105][0];
|
||||
int _e110 = idx_2;
|
||||
int _e112 = idx_2;
|
||||
float3 l_u_c_vv = u_am[_e110][_e112];
|
||||
float l_u_e_ccc = u_am[0][0].x;
|
||||
int _e123 = idx_2;
|
||||
float l_u_e_ccv = u_am[0][0][_e123];
|
||||
int _e128 = idx_2;
|
||||
float l_u_e_cvc = u_am[0][_e128].x;
|
||||
int _e134 = idx_2;
|
||||
int _e136 = idx_2;
|
||||
float l_u_e_cvv = u_am[0][_e134][_e136];
|
||||
int _e140 = idx_2;
|
||||
float l_u_e_vcc = u_am[_e140][0].x;
|
||||
int _e146 = idx_2;
|
||||
int _e149 = idx_2;
|
||||
float l_u_e_vcv = u_am[_e146][0][_e149];
|
||||
int _e153 = idx_2;
|
||||
int _e155 = idx_2;
|
||||
float l_u_e_vvc = u_am[_e153][_e155].x;
|
||||
int _e160 = idx_2;
|
||||
int _e162 = idx_2;
|
||||
int _e164 = idx_2;
|
||||
float l_u_e_vvv = u_am[_e160][_e162][_e164];
|
||||
{
|
||||
float3x3 _value2[4] = l_u_a;
|
||||
{
|
||||
float3x3 _value3 = _value2[0];
|
||||
s_am.Store3(0+0, asuint(_value3[0]));
|
||||
s_am.Store3(0+16, asuint(_value3[1]));
|
||||
s_am.Store3(0+32, asuint(_value3[2]));
|
||||
}
|
||||
{
|
||||
float3x3 _value3 = _value2[1];
|
||||
s_am.Store3(48+0, asuint(_value3[0]));
|
||||
s_am.Store3(48+16, asuint(_value3[1]));
|
||||
s_am.Store3(48+32, asuint(_value3[2]));
|
||||
}
|
||||
{
|
||||
float3x3 _value3 = _value2[2];
|
||||
s_am.Store3(96+0, asuint(_value3[0]));
|
||||
s_am.Store3(96+16, asuint(_value3[1]));
|
||||
s_am.Store3(96+32, asuint(_value3[2]));
|
||||
}
|
||||
{
|
||||
float3x3 _value3 = _value2[3];
|
||||
s_am.Store3(144+0, asuint(_value3[0]));
|
||||
s_am.Store3(144+16, asuint(_value3[1]));
|
||||
s_am.Store3(144+32, asuint(_value3[2]));
|
||||
}
|
||||
}
|
||||
{
|
||||
float3x3 _value2 = l_u_m_c;
|
||||
s_am.Store3(0+0, asuint(_value2[0]));
|
||||
s_am.Store3(0+16, asuint(_value2[1]));
|
||||
s_am.Store3(0+32, asuint(_value2[2]));
|
||||
}
|
||||
int _e171 = idx_2;
|
||||
{
|
||||
float3x3 _value2 = l_u_m_v;
|
||||
s_am.Store3(_e171*48+0, asuint(_value2[0]));
|
||||
s_am.Store3(_e171*48+16, asuint(_value2[1]));
|
||||
s_am.Store3(_e171*48+32, asuint(_value2[2]));
|
||||
}
|
||||
s_am.Store3(0+0, asuint(l_u_c_cc));
|
||||
int _e178 = idx_2;
|
||||
s_am.Store3(_e178*16+0, asuint(l_u_c_cv));
|
||||
int _e181 = idx_2;
|
||||
s_am.Store3(0+_e181*48, asuint(l_u_c_vc));
|
||||
int _e185 = idx_2;
|
||||
int _e187 = idx_2;
|
||||
s_am.Store3(_e187*16+_e185*48, asuint(l_u_c_vv));
|
||||
s_am.Store(0+0+0, asuint(l_u_e_ccc));
|
||||
int _e196 = idx_2;
|
||||
s_am.Store(_e196*4+0+0, asuint(l_u_e_ccv));
|
||||
int _e200 = idx_2;
|
||||
s_am.Store(0+_e200*16+0, asuint(l_u_e_cvc));
|
||||
int _e205 = idx_2;
|
||||
int _e207 = idx_2;
|
||||
s_am.Store(_e207*4+_e205*16+0, asuint(l_u_e_cvv));
|
||||
int _e210 = idx_2;
|
||||
s_am.Store(0+0+_e210*48, asuint(l_u_e_vcc));
|
||||
int _e215 = idx_2;
|
||||
int _e218 = idx_2;
|
||||
s_am.Store(_e218*4+0+_e215*48, asuint(l_u_e_vcv));
|
||||
int _e221 = idx_2;
|
||||
int _e223 = idx_2;
|
||||
s_am.Store(0+_e223*16+_e221*48, asuint(l_u_e_vvc));
|
||||
int _e227 = idx_2;
|
||||
int _e229 = idx_2;
|
||||
int _e231 = idx_2;
|
||||
s_am.Store(_e231*4+_e229*16+_e227*48, asuint(l_u_e_vvv));
|
||||
return;
|
||||
}
|
||||
|
||||
typedef StructWithMat ret_Constructarray4_StructWithMat_[4];
|
||||
ret_Constructarray4_StructWithMat_ Constructarray4_StructWithMat_(StructWithMat arg0, StructWithMat arg1, StructWithMat arg2, StructWithMat arg3) {
|
||||
StructWithMat ret[4] = { arg0, arg1, arg2, arg3 };
|
||||
@@ -145,76 +294,76 @@ StructWithArrayOfStructOfMat ConstructStructWithArrayOfStructOfMat(StructWithMat
|
||||
|
||||
void access_sasm()
|
||||
{
|
||||
int idx_2 = int(1);
|
||||
int idx_3 = int(1);
|
||||
|
||||
int _e3 = idx_2;
|
||||
idx_2 = asint(asuint(_e3) - asuint(int(1)));
|
||||
int _e3 = idx_3;
|
||||
idx_3 = asint(asuint(_e3) - asuint(int(1)));
|
||||
StructWithArrayOfStructOfMat l_s_s_1 = ConstructStructWithArrayOfStructOfMat(Constructarray4_StructWithMat_(ConstructStructWithMat(float3x3(asfloat(s_sasm.Load3(0+0+0+0)), asfloat(s_sasm.Load3(0+0+0+16)), asfloat(s_sasm.Load3(0+0+0+32)))), ConstructStructWithMat(float3x3(asfloat(s_sasm.Load3(0+48+0+0)), asfloat(s_sasm.Load3(0+48+0+16)), asfloat(s_sasm.Load3(0+48+0+32)))), ConstructStructWithMat(float3x3(asfloat(s_sasm.Load3(0+96+0+0)), asfloat(s_sasm.Load3(0+96+0+16)), asfloat(s_sasm.Load3(0+96+0+32)))), ConstructStructWithMat(float3x3(asfloat(s_sasm.Load3(0+144+0+0)), asfloat(s_sasm.Load3(0+144+0+16)), asfloat(s_sasm.Load3(0+144+0+32))))));
|
||||
StructWithMat l_s_a[4] = Constructarray4_StructWithMat_(ConstructStructWithMat(float3x3(asfloat(s_sasm.Load3(0+0+0+0)), asfloat(s_sasm.Load3(0+0+0+16)), asfloat(s_sasm.Load3(0+0+0+32)))), ConstructStructWithMat(float3x3(asfloat(s_sasm.Load3(0+48+0+0)), asfloat(s_sasm.Load3(0+48+0+16)), asfloat(s_sasm.Load3(0+48+0+32)))), ConstructStructWithMat(float3x3(asfloat(s_sasm.Load3(0+96+0+0)), asfloat(s_sasm.Load3(0+96+0+16)), asfloat(s_sasm.Load3(0+96+0+32)))), ConstructStructWithMat(float3x3(asfloat(s_sasm.Load3(0+144+0+0)), asfloat(s_sasm.Load3(0+144+0+16)), asfloat(s_sasm.Load3(0+144+0+32)))));
|
||||
float3x3 l_s_m_c = float3x3(asfloat(s_sasm.Load3(0+0+0+0)), asfloat(s_sasm.Load3(0+0+0+16)), asfloat(s_sasm.Load3(0+0+0+32)));
|
||||
int _e17 = idx_2;
|
||||
float3x3 l_s_m_v = float3x3(asfloat(s_sasm.Load3(0+_e17*48+0+0)), asfloat(s_sasm.Load3(0+_e17*48+0+16)), asfloat(s_sasm.Load3(0+_e17*48+0+32)));
|
||||
float3 l_s_c_cc = asfloat(s_sasm.Load3(0+0+0+0));
|
||||
int _e31 = idx_2;
|
||||
float3 l_s_c_cv = asfloat(s_sasm.Load3(_e31*16+0+0+0));
|
||||
int _e36 = idx_2;
|
||||
float3 l_s_c_vc = asfloat(s_sasm.Load3(0+0+_e36*48+0));
|
||||
int _e43 = idx_2;
|
||||
int _e46 = idx_2;
|
||||
float3 l_s_c_vv = asfloat(s_sasm.Load3(_e46*16+0+_e43*48+0));
|
||||
float l_s_e_ccc = asfloat(s_sasm.Load(0+0+0+0+0));
|
||||
int _e61 = idx_2;
|
||||
float l_s_e_ccv = asfloat(s_sasm.Load(_e61*4+0+0+0+0));
|
||||
int _e68 = idx_2;
|
||||
float l_s_e_cvc = asfloat(s_sasm.Load(0+_e68*16+0+0+0));
|
||||
int _e76 = idx_2;
|
||||
int _e78 = idx_2;
|
||||
float l_s_e_cvv = asfloat(s_sasm.Load(_e78*4+_e76*16+0+0+0));
|
||||
int _e83 = idx_2;
|
||||
float l_s_e_vcc = asfloat(s_sasm.Load(0+0+0+_e83*48+0));
|
||||
int _e91 = idx_2;
|
||||
int _e95 = idx_2;
|
||||
float l_s_e_vcv = asfloat(s_sasm.Load(_e95*4+0+0+_e91*48+0));
|
||||
int _e100 = idx_2;
|
||||
int _e103 = idx_2;
|
||||
float l_s_e_vvc = asfloat(s_sasm.Load(0+_e103*16+0+_e100*48+0));
|
||||
int _e109 = idx_2;
|
||||
int _e112 = idx_2;
|
||||
int _e114 = idx_2;
|
||||
float l_s_e_vvv = asfloat(s_sasm.Load(_e114*4+_e112*16+0+_e109*48+0));
|
||||
StructWithMat l_s_a_1[4] = Constructarray4_StructWithMat_(ConstructStructWithMat(float3x3(asfloat(s_sasm.Load3(0+0+0+0)), asfloat(s_sasm.Load3(0+0+0+16)), asfloat(s_sasm.Load3(0+0+0+32)))), ConstructStructWithMat(float3x3(asfloat(s_sasm.Load3(0+48+0+0)), asfloat(s_sasm.Load3(0+48+0+16)), asfloat(s_sasm.Load3(0+48+0+32)))), ConstructStructWithMat(float3x3(asfloat(s_sasm.Load3(0+96+0+0)), asfloat(s_sasm.Load3(0+96+0+16)), asfloat(s_sasm.Load3(0+96+0+32)))), ConstructStructWithMat(float3x3(asfloat(s_sasm.Load3(0+144+0+0)), asfloat(s_sasm.Load3(0+144+0+16)), asfloat(s_sasm.Load3(0+144+0+32)))));
|
||||
float3x3 l_s_m_c_1 = float3x3(asfloat(s_sasm.Load3(0+0+0+0)), asfloat(s_sasm.Load3(0+0+0+16)), asfloat(s_sasm.Load3(0+0+0+32)));
|
||||
int _e17 = idx_3;
|
||||
float3x3 l_s_m_v_1 = float3x3(asfloat(s_sasm.Load3(0+_e17*48+0+0)), asfloat(s_sasm.Load3(0+_e17*48+0+16)), asfloat(s_sasm.Load3(0+_e17*48+0+32)));
|
||||
float3 l_s_c_cc_1 = asfloat(s_sasm.Load3(0+0+0+0));
|
||||
int _e31 = idx_3;
|
||||
float3 l_s_c_cv_1 = asfloat(s_sasm.Load3(_e31*16+0+0+0));
|
||||
int _e36 = idx_3;
|
||||
float3 l_s_c_vc_1 = asfloat(s_sasm.Load3(0+0+_e36*48+0));
|
||||
int _e43 = idx_3;
|
||||
int _e46 = idx_3;
|
||||
float3 l_s_c_vv_1 = asfloat(s_sasm.Load3(_e46*16+0+_e43*48+0));
|
||||
float l_s_e_ccc_1 = asfloat(s_sasm.Load(0+0+0+0+0));
|
||||
int _e61 = idx_3;
|
||||
float l_s_e_ccv_1 = asfloat(s_sasm.Load(_e61*4+0+0+0+0));
|
||||
int _e68 = idx_3;
|
||||
float l_s_e_cvc_1 = asfloat(s_sasm.Load(0+_e68*16+0+0+0));
|
||||
int _e76 = idx_3;
|
||||
int _e78 = idx_3;
|
||||
float l_s_e_cvv_1 = asfloat(s_sasm.Load(_e78*4+_e76*16+0+0+0));
|
||||
int _e83 = idx_3;
|
||||
float l_s_e_vcc_1 = asfloat(s_sasm.Load(0+0+0+_e83*48+0));
|
||||
int _e91 = idx_3;
|
||||
int _e95 = idx_3;
|
||||
float l_s_e_vcv_1 = asfloat(s_sasm.Load(_e95*4+0+0+_e91*48+0));
|
||||
int _e100 = idx_3;
|
||||
int _e103 = idx_3;
|
||||
float l_s_e_vvc_1 = asfloat(s_sasm.Load(0+_e103*16+0+_e100*48+0));
|
||||
int _e109 = idx_3;
|
||||
int _e112 = idx_3;
|
||||
int _e114 = idx_3;
|
||||
float l_s_e_vvv_1 = asfloat(s_sasm.Load(_e114*4+_e112*16+0+_e109*48+0));
|
||||
StructWithArrayOfStructOfMat l_u_s_1 = u_sasm;
|
||||
StructWithMat l_u_a[4] = u_sasm.a;
|
||||
float3x3 l_u_m_c = u_sasm.a[0].m;
|
||||
int _e129 = idx_2;
|
||||
float3x3 l_u_m_v = u_sasm.a[_e129].m;
|
||||
float3 l_u_c_cc = u_sasm.a[0].m[0];
|
||||
int _e143 = idx_2;
|
||||
float3 l_u_c_cv = u_sasm.a[0].m[_e143];
|
||||
int _e148 = idx_2;
|
||||
float3 l_u_c_vc = u_sasm.a[_e148].m[0];
|
||||
int _e155 = idx_2;
|
||||
int _e158 = idx_2;
|
||||
float3 l_u_c_vv = u_sasm.a[_e155].m[_e158];
|
||||
float l_u_e_ccc = u_sasm.a[0].m[0].x;
|
||||
int _e173 = idx_2;
|
||||
float l_u_e_ccv = u_sasm.a[0].m[0][_e173];
|
||||
int _e180 = idx_2;
|
||||
float l_u_e_cvc = u_sasm.a[0].m[_e180].x;
|
||||
int _e188 = idx_2;
|
||||
int _e190 = idx_2;
|
||||
float l_u_e_cvv = u_sasm.a[0].m[_e188][_e190];
|
||||
int _e195 = idx_2;
|
||||
float l_u_e_vcc = u_sasm.a[_e195].m[0].x;
|
||||
int _e203 = idx_2;
|
||||
int _e207 = idx_2;
|
||||
float l_u_e_vcv = u_sasm.a[_e203].m[0][_e207];
|
||||
int _e212 = idx_2;
|
||||
int _e215 = idx_2;
|
||||
float l_u_e_vvc = u_sasm.a[_e212].m[_e215].x;
|
||||
int _e221 = idx_2;
|
||||
int _e224 = idx_2;
|
||||
int _e226 = idx_2;
|
||||
float l_u_e_vvv = u_sasm.a[_e221].m[_e224][_e226];
|
||||
StructWithMat l_u_a_1[4] = u_sasm.a;
|
||||
float3x3 l_u_m_c_1 = u_sasm.a[0].m;
|
||||
int _e129 = idx_3;
|
||||
float3x3 l_u_m_v_1 = u_sasm.a[_e129].m;
|
||||
float3 l_u_c_cc_1 = u_sasm.a[0].m[0];
|
||||
int _e143 = idx_3;
|
||||
float3 l_u_c_cv_1 = u_sasm.a[0].m[_e143];
|
||||
int _e148 = idx_3;
|
||||
float3 l_u_c_vc_1 = u_sasm.a[_e148].m[0];
|
||||
int _e155 = idx_3;
|
||||
int _e158 = idx_3;
|
||||
float3 l_u_c_vv_1 = u_sasm.a[_e155].m[_e158];
|
||||
float l_u_e_ccc_1 = u_sasm.a[0].m[0].x;
|
||||
int _e173 = idx_3;
|
||||
float l_u_e_ccv_1 = u_sasm.a[0].m[0][_e173];
|
||||
int _e180 = idx_3;
|
||||
float l_u_e_cvc_1 = u_sasm.a[0].m[_e180].x;
|
||||
int _e188 = idx_3;
|
||||
int _e190 = idx_3;
|
||||
float l_u_e_cvv_1 = u_sasm.a[0].m[_e188][_e190];
|
||||
int _e195 = idx_3;
|
||||
float l_u_e_vcc_1 = u_sasm.a[_e195].m[0].x;
|
||||
int _e203 = idx_3;
|
||||
int _e207 = idx_3;
|
||||
float l_u_e_vcv_1 = u_sasm.a[_e203].m[0][_e207];
|
||||
int _e212 = idx_3;
|
||||
int _e215 = idx_3;
|
||||
float l_u_e_vvc_1 = u_sasm.a[_e212].m[_e215].x;
|
||||
int _e221 = idx_3;
|
||||
int _e224 = idx_3;
|
||||
int _e226 = idx_3;
|
||||
float l_u_e_vvv_1 = u_sasm.a[_e221].m[_e224][_e226];
|
||||
{
|
||||
StructWithArrayOfStructOfMat _value2 = l_u_s_1;
|
||||
{
|
||||
@@ -258,7 +407,7 @@ void access_sasm()
|
||||
}
|
||||
}
|
||||
{
|
||||
StructWithMat _value2[4] = l_u_a;
|
||||
StructWithMat _value2[4] = l_u_a_1;
|
||||
{
|
||||
StructWithMat _value3 = _value2[0];
|
||||
{
|
||||
@@ -297,46 +446,46 @@ void access_sasm()
|
||||
}
|
||||
}
|
||||
{
|
||||
float3x3 _value2 = l_u_m_c;
|
||||
float3x3 _value2 = l_u_m_c_1;
|
||||
s_sasm.Store3(0+0+0+0, asuint(_value2[0]));
|
||||
s_sasm.Store3(0+0+0+16, asuint(_value2[1]));
|
||||
s_sasm.Store3(0+0+0+32, asuint(_value2[2]));
|
||||
}
|
||||
int _e238 = idx_2;
|
||||
int _e238 = idx_3;
|
||||
{
|
||||
float3x3 _value2 = l_u_m_v;
|
||||
float3x3 _value2 = l_u_m_v_1;
|
||||
s_sasm.Store3(0+_e238*48+0+0, asuint(_value2[0]));
|
||||
s_sasm.Store3(0+_e238*48+0+16, asuint(_value2[1]));
|
||||
s_sasm.Store3(0+_e238*48+0+32, asuint(_value2[2]));
|
||||
}
|
||||
s_sasm.Store3(0+0+0+0, asuint(l_u_c_cc));
|
||||
int _e250 = idx_2;
|
||||
s_sasm.Store3(_e250*16+0+0+0, asuint(l_u_c_cv));
|
||||
int _e254 = idx_2;
|
||||
s_sasm.Store3(0+0+_e254*48+0, asuint(l_u_c_vc));
|
||||
int _e260 = idx_2;
|
||||
int _e263 = idx_2;
|
||||
s_sasm.Store3(_e263*16+0+_e260*48+0, asuint(l_u_c_vv));
|
||||
s_sasm.Store(0+0+0+0+0, asuint(l_u_e_ccc));
|
||||
int _e276 = idx_2;
|
||||
s_sasm.Store(_e276*4+0+0+0+0, asuint(l_u_e_ccv));
|
||||
int _e282 = idx_2;
|
||||
s_sasm.Store(0+_e282*16+0+0+0, asuint(l_u_e_cvc));
|
||||
int _e289 = idx_2;
|
||||
int _e291 = idx_2;
|
||||
s_sasm.Store(_e291*4+_e289*16+0+0+0, asuint(l_u_e_cvv));
|
||||
int _e295 = idx_2;
|
||||
s_sasm.Store(0+0+0+_e295*48+0, asuint(l_u_e_vcc));
|
||||
int _e302 = idx_2;
|
||||
int _e306 = idx_2;
|
||||
s_sasm.Store(_e306*4+0+0+_e302*48+0, asuint(l_u_e_vcv));
|
||||
int _e310 = idx_2;
|
||||
int _e313 = idx_2;
|
||||
s_sasm.Store(0+_e313*16+0+_e310*48+0, asuint(l_u_e_vvc));
|
||||
int _e318 = idx_2;
|
||||
int _e321 = idx_2;
|
||||
int _e323 = idx_2;
|
||||
s_sasm.Store(_e323*4+_e321*16+0+_e318*48+0, asuint(l_u_e_vvv));
|
||||
s_sasm.Store3(0+0+0+0, asuint(l_u_c_cc_1));
|
||||
int _e250 = idx_3;
|
||||
s_sasm.Store3(_e250*16+0+0+0, asuint(l_u_c_cv_1));
|
||||
int _e254 = idx_3;
|
||||
s_sasm.Store3(0+0+_e254*48+0, asuint(l_u_c_vc_1));
|
||||
int _e260 = idx_3;
|
||||
int _e263 = idx_3;
|
||||
s_sasm.Store3(_e263*16+0+_e260*48+0, asuint(l_u_c_vv_1));
|
||||
s_sasm.Store(0+0+0+0+0, asuint(l_u_e_ccc_1));
|
||||
int _e276 = idx_3;
|
||||
s_sasm.Store(_e276*4+0+0+0+0, asuint(l_u_e_ccv_1));
|
||||
int _e282 = idx_3;
|
||||
s_sasm.Store(0+_e282*16+0+0+0, asuint(l_u_e_cvc_1));
|
||||
int _e289 = idx_3;
|
||||
int _e291 = idx_3;
|
||||
s_sasm.Store(_e291*4+_e289*16+0+0+0, asuint(l_u_e_cvv_1));
|
||||
int _e295 = idx_3;
|
||||
s_sasm.Store(0+0+0+_e295*48+0, asuint(l_u_e_vcc_1));
|
||||
int _e302 = idx_3;
|
||||
int _e306 = idx_3;
|
||||
s_sasm.Store(_e306*4+0+0+_e302*48+0, asuint(l_u_e_vcv_1));
|
||||
int _e310 = idx_3;
|
||||
int _e313 = idx_3;
|
||||
s_sasm.Store(0+_e313*16+0+_e310*48+0, asuint(l_u_e_vvc_1));
|
||||
int _e318 = idx_3;
|
||||
int _e321 = idx_3;
|
||||
int _e323 = idx_3;
|
||||
s_sasm.Store(_e323*4+_e321*16+0+_e318*48+0, asuint(l_u_e_vvv_1));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -345,6 +494,7 @@ void main()
|
||||
{
|
||||
access_m();
|
||||
access_sm();
|
||||
access_am();
|
||||
access_sasm();
|
||||
return;
|
||||
}
|
||||
+1012
-635
File diff suppressed because it is too large.
Load diff
@@ -1,46 +1,59 @@
|
||||
; SPIR-V
|
||||
; Version: 1.1
|
||||
; Generator: rspirv
|
||||
; Bound: 309
|
||||
; Bound: 452
|
||||
OpCapability Shader
|
||||
OpExtension "SPV_KHR_storage_buffer_storage_class"
|
||||
%1 = OpExtInstImport "GLSL.std.450"
|
||||
OpMemoryModel Logical GLSL450
|
||||
OpEntryPoint GLCompute %298 "main"
|
||||
OpExecutionMode %298 LocalSize 1 1 1
|
||||
OpEntryPoint GLCompute %438 "main"
|
||||
OpExecutionMode %438 LocalSize 1 1 1
|
||||
OpMemberDecorate %7 0 Offset 0
|
||||
OpMemberDecorate %7 0 ColMajor
|
||||
OpMemberDecorate %7 0 MatrixStride 16
|
||||
OpDecorate %8 ArrayStride 48
|
||||
OpMemberDecorate %11 0 Offset 0
|
||||
OpDecorate %12 DescriptorSet 0
|
||||
OpDecorate %12 Binding 0
|
||||
OpDecorate %13 Block
|
||||
OpMemberDecorate %13 0 Offset 0
|
||||
OpMemberDecorate %13 0 ColMajor
|
||||
OpMemberDecorate %13 0 MatrixStride 16
|
||||
OpDecorate %15 DescriptorSet 0
|
||||
OpDecorate %15 Binding 1
|
||||
OpDecorate %16 Block
|
||||
OpMemberDecorate %16 0 Offset 0
|
||||
OpMemberDecorate %16 0 ColMajor
|
||||
OpMemberDecorate %16 0 MatrixStride 16
|
||||
OpDecorate %18 DescriptorSet 1
|
||||
OpDecorate %18 Binding 0
|
||||
OpDecorate %19 Block
|
||||
OpMemberDecorate %19 0 Offset 0
|
||||
OpDecorate %21 DescriptorSet 1
|
||||
OpDecorate %21 Binding 1
|
||||
OpDecorate %22 Block
|
||||
OpMemberDecorate %22 0 Offset 0
|
||||
OpDecorate %24 DescriptorSet 2
|
||||
OpDecorate %24 Binding 0
|
||||
OpDecorate %25 Block
|
||||
OpMemberDecorate %25 0 Offset 0
|
||||
OpDecorate %27 DescriptorSet 2
|
||||
OpDecorate %27 Binding 1
|
||||
OpDecorate %28 Block
|
||||
OpMemberDecorate %28 0 Offset 0
|
||||
OpDecorate %11 ArrayStride 48
|
||||
OpMemberDecorate %12 0 Offset 0
|
||||
OpDecorate %13 DescriptorSet 0
|
||||
OpDecorate %13 Binding 0
|
||||
OpDecorate %14 Block
|
||||
OpMemberDecorate %14 0 Offset 0
|
||||
OpMemberDecorate %14 0 ColMajor
|
||||
OpMemberDecorate %14 0 MatrixStride 16
|
||||
OpDecorate %16 DescriptorSet 0
|
||||
OpDecorate %16 Binding 1
|
||||
OpDecorate %17 Block
|
||||
OpMemberDecorate %17 0 Offset 0
|
||||
OpMemberDecorate %17 0 ColMajor
|
||||
OpMemberDecorate %17 0 MatrixStride 16
|
||||
OpDecorate %19 DescriptorSet 1
|
||||
OpDecorate %19 Binding 0
|
||||
OpDecorate %20 Block
|
||||
OpMemberDecorate %20 0 Offset 0
|
||||
OpDecorate %22 DescriptorSet 1
|
||||
OpDecorate %22 Binding 1
|
||||
OpDecorate %23 Block
|
||||
OpMemberDecorate %23 0 Offset 0
|
||||
OpDecorate %25 DescriptorSet 2
|
||||
OpDecorate %25 Binding 0
|
||||
OpDecorate %26 Block
|
||||
OpMemberDecorate %26 0 Offset 0
|
||||
OpMemberDecorate %26 0 ColMajor
|
||||
OpMemberDecorate %26 0 MatrixStride 16
|
||||
OpDecorate %28 DescriptorSet 2
|
||||
OpDecorate %28 Binding 1
|
||||
OpDecorate %29 Block
|
||||
OpMemberDecorate %29 0 Offset 0
|
||||
OpMemberDecorate %29 0 ColMajor
|
||||
OpMemberDecorate %29 0 MatrixStride 16
|
||||
OpDecorate %31 DescriptorSet 3
|
||||
OpDecorate %31 Binding 0
|
||||
OpDecorate %32 Block
|
||||
OpMemberDecorate %32 0 Offset 0
|
||||
OpDecorate %34 DescriptorSet 3
|
||||
OpDecorate %34 Binding 1
|
||||
OpDecorate %35 Block
|
||||
OpMemberDecorate %35 0 Offset 0
|
||||
%2 = OpTypeVoid
|
||||
%5 = OpTypeFloat 32
|
||||
%4 = OpTypeVector %5 3
|
||||
@@ -49,348 +62,510 @@ OpMemberDecorate %28 0 Offset 0
|
||||
%7 = OpTypeStruct %3
|
||||
%10 = OpTypeInt 32 0
|
||||
%9 = OpConstant %10 4
|
||||
%8 = OpTypeArray %7 %9
|
||||
%11 = OpTypeStruct %8
|
||||
%13 = OpTypeStruct %3
|
||||
%14 = OpTypePointer StorageBuffer %13
|
||||
%12 = OpVariable %14 StorageBuffer
|
||||
%16 = OpTypeStruct %3
|
||||
%17 = OpTypePointer Uniform %16
|
||||
%15 = OpVariable %17 Uniform
|
||||
%19 = OpTypeStruct %7
|
||||
%20 = OpTypePointer StorageBuffer %19
|
||||
%18 = OpVariable %20 StorageBuffer
|
||||
%22 = OpTypeStruct %7
|
||||
%23 = OpTypePointer Uniform %22
|
||||
%21 = OpVariable %23 Uniform
|
||||
%25 = OpTypeStruct %11
|
||||
%26 = OpTypePointer StorageBuffer %25
|
||||
%24 = OpVariable %26 StorageBuffer
|
||||
%28 = OpTypeStruct %11
|
||||
%29 = OpTypePointer Uniform %28
|
||||
%27 = OpVariable %29 Uniform
|
||||
%32 = OpTypeFunction %2
|
||||
%33 = OpTypePointer StorageBuffer %3
|
||||
%34 = OpConstant %10 0
|
||||
%36 = OpTypePointer Uniform %3
|
||||
%38 = OpConstant %6 1
|
||||
%40 = OpTypePointer Function %6
|
||||
%45 = OpTypePointer StorageBuffer %4
|
||||
%51 = OpTypePointer StorageBuffer %5
|
||||
%65 = OpTypePointer Uniform %4
|
||||
%71 = OpTypePointer Uniform %5
|
||||
%97 = OpTypePointer StorageBuffer %7
|
||||
%99 = OpTypePointer Uniform %7
|
||||
%159 = OpTypePointer StorageBuffer %11
|
||||
%161 = OpTypePointer Uniform %11
|
||||
%168 = OpTypePointer StorageBuffer %8
|
||||
%217 = OpTypePointer Uniform %8
|
||||
%31 = OpFunction %2 None %32
|
||||
%30 = OpLabel
|
||||
%39 = OpVariable %40 Function %38
|
||||
%35 = OpAccessChain %33 %12 %34
|
||||
%37 = OpAccessChain %36 %15 %34
|
||||
OpBranch %41
|
||||
%41 = OpLabel
|
||||
%42 = OpLoad %6 %39
|
||||
%43 = OpISub %6 %42 %38
|
||||
OpStore %39 %43
|
||||
%44 = OpLoad %3 %35
|
||||
%46 = OpAccessChain %45 %35 %34
|
||||
%47 = OpLoad %4 %46
|
||||
%48 = OpLoad %6 %39
|
||||
%49 = OpAccessChain %45 %35 %48
|
||||
%50 = OpLoad %4 %49
|
||||
%52 = OpAccessChain %51 %35 %34 %34
|
||||
%53 = OpLoad %5 %52
|
||||
%54 = OpLoad %6 %39
|
||||
%55 = OpAccessChain %51 %35 %34 %54
|
||||
%56 = OpLoad %5 %55
|
||||
%57 = OpLoad %6 %39
|
||||
%58 = OpAccessChain %51 %35 %57 %34
|
||||
%59 = OpLoad %5 %58
|
||||
%60 = OpLoad %6 %39
|
||||
%61 = OpLoad %6 %39
|
||||
%62 = OpAccessChain %51 %35 %60 %61
|
||||
%8 = OpTypeArray %3 %9
|
||||
%11 = OpTypeArray %7 %9
|
||||
%12 = OpTypeStruct %11
|
||||
%14 = OpTypeStruct %3
|
||||
%15 = OpTypePointer StorageBuffer %14
|
||||
%13 = OpVariable %15 StorageBuffer
|
||||
%17 = OpTypeStruct %3
|
||||
%18 = OpTypePointer Uniform %17
|
||||
%16 = OpVariable %18 Uniform
|
||||
%20 = OpTypeStruct %7
|
||||
%21 = OpTypePointer StorageBuffer %20
|
||||
%19 = OpVariable %21 StorageBuffer
|
||||
%23 = OpTypeStruct %7
|
||||
%24 = OpTypePointer Uniform %23
|
||||
%22 = OpVariable %24 Uniform
|
||||
%26 = OpTypeStruct %8
|
||||
%27 = OpTypePointer StorageBuffer %26
|
||||
%25 = OpVariable %27 StorageBuffer
|
||||
%29 = OpTypeStruct %8
|
||||
%30 = OpTypePointer Uniform %29
|
||||
%28 = OpVariable %30 Uniform
|
||||
%32 = OpTypeStruct %12
|
||||
%33 = OpTypePointer StorageBuffer %32
|
||||
%31 = OpVariable %33 StorageBuffer
|
||||
%35 = OpTypeStruct %12
|
||||
%36 = OpTypePointer Uniform %35
|
||||
%34 = OpVariable %36 Uniform
|
||||
%39 = OpTypeFunction %2
|
||||
%40 = OpTypePointer StorageBuffer %3
|
||||
%41 = OpConstant %10 0
|
||||
%43 = OpTypePointer Uniform %3
|
||||
%45 = OpConstant %6 1
|
||||
%47 = OpTypePointer Function %6
|
||||
%52 = OpTypePointer StorageBuffer %4
|
||||
%58 = OpTypePointer StorageBuffer %5
|
||||
%72 = OpTypePointer Uniform %4
|
||||
%78 = OpTypePointer Uniform %5
|
||||
%104 = OpTypePointer StorageBuffer %7
|
||||
%106 = OpTypePointer Uniform %7
|
||||
%166 = OpTypePointer StorageBuffer %8
|
||||
%168 = OpTypePointer Uniform %8
|
||||
%299 = OpTypePointer StorageBuffer %12
|
||||
%301 = OpTypePointer Uniform %12
|
||||
%308 = OpTypePointer StorageBuffer %11
|
||||
%357 = OpTypePointer Uniform %11
|
||||
%38 = OpFunction %2 None %39
|
||||
%37 = OpLabel
|
||||
%46 = OpVariable %47 Function %45
|
||||
%42 = OpAccessChain %40 %13 %41
|
||||
%44 = OpAccessChain %43 %16 %41
|
||||
OpBranch %48
|
||||
%48 = OpLabel
|
||||
%49 = OpLoad %6 %46
|
||||
%50 = OpISub %6 %49 %45
|
||||
OpStore %46 %50
|
||||
%51 = OpLoad %3 %42
|
||||
%53 = OpAccessChain %52 %42 %41
|
||||
%54 = OpLoad %4 %53
|
||||
%55 = OpLoad %6 %46
|
||||
%56 = OpAccessChain %52 %42 %55
|
||||
%57 = OpLoad %4 %56
|
||||
%59 = OpAccessChain %58 %42 %41 %41
|
||||
%60 = OpLoad %5 %59
|
||||
%61 = OpLoad %6 %46
|
||||
%62 = OpAccessChain %58 %42 %41 %61
|
||||
%63 = OpLoad %5 %62
|
||||
%64 = OpLoad %3 %37
|
||||
%66 = OpAccessChain %65 %37 %34
|
||||
%67 = OpLoad %4 %66
|
||||
%68 = OpLoad %6 %39
|
||||
%69 = OpAccessChain %65 %37 %68
|
||||
%70 = OpLoad %4 %69
|
||||
%72 = OpAccessChain %71 %37 %34 %34
|
||||
%73 = OpLoad %5 %72
|
||||
%74 = OpLoad %6 %39
|
||||
%75 = OpAccessChain %71 %37 %34 %74
|
||||
%76 = OpLoad %5 %75
|
||||
%77 = OpLoad %6 %39
|
||||
%78 = OpAccessChain %71 %37 %77 %34
|
||||
%79 = OpLoad %5 %78
|
||||
%80 = OpLoad %6 %39
|
||||
%81 = OpLoad %6 %39
|
||||
%82 = OpAccessChain %71 %37 %80 %81
|
||||
%64 = OpLoad %6 %46
|
||||
%65 = OpAccessChain %58 %42 %64 %41
|
||||
%66 = OpLoad %5 %65
|
||||
%67 = OpLoad %6 %46
|
||||
%68 = OpLoad %6 %46
|
||||
%69 = OpAccessChain %58 %42 %67 %68
|
||||
%70 = OpLoad %5 %69
|
||||
%71 = OpLoad %3 %44
|
||||
%73 = OpAccessChain %72 %44 %41
|
||||
%74 = OpLoad %4 %73
|
||||
%75 = OpLoad %6 %46
|
||||
%76 = OpAccessChain %72 %44 %75
|
||||
%77 = OpLoad %4 %76
|
||||
%79 = OpAccessChain %78 %44 %41 %41
|
||||
%80 = OpLoad %5 %79
|
||||
%81 = OpLoad %6 %46
|
||||
%82 = OpAccessChain %78 %44 %41 %81
|
||||
%83 = OpLoad %5 %82
|
||||
OpStore %35 %64
|
||||
%84 = OpAccessChain %45 %35 %34
|
||||
OpStore %84 %67
|
||||
%85 = OpLoad %6 %39
|
||||
%86 = OpAccessChain %45 %35 %85
|
||||
OpStore %86 %70
|
||||
%87 = OpAccessChain %51 %35 %34 %34
|
||||
OpStore %87 %73
|
||||
%88 = OpLoad %6 %39
|
||||
%89 = OpAccessChain %51 %35 %34 %88
|
||||
OpStore %89 %76
|
||||
%90 = OpLoad %6 %39
|
||||
%91 = OpAccessChain %51 %35 %90 %34
|
||||
OpStore %91 %79
|
||||
%92 = OpLoad %6 %39
|
||||
%93 = OpLoad %6 %39
|
||||
%94 = OpAccessChain %51 %35 %92 %93
|
||||
OpStore %94 %83
|
||||
%84 = OpLoad %6 %46
|
||||
%85 = OpAccessChain %78 %44 %84 %41
|
||||
%86 = OpLoad %5 %85
|
||||
%87 = OpLoad %6 %46
|
||||
%88 = OpLoad %6 %46
|
||||
%89 = OpAccessChain %78 %44 %87 %88
|
||||
%90 = OpLoad %5 %89
|
||||
OpStore %42 %71
|
||||
%91 = OpAccessChain %52 %42 %41
|
||||
OpStore %91 %74
|
||||
%92 = OpLoad %6 %46
|
||||
%93 = OpAccessChain %52 %42 %92
|
||||
OpStore %93 %77
|
||||
%94 = OpAccessChain %58 %42 %41 %41
|
||||
OpStore %94 %80
|
||||
%95 = OpLoad %6 %46
|
||||
%96 = OpAccessChain %58 %42 %41 %95
|
||||
OpStore %96 %83
|
||||
%97 = OpLoad %6 %46
|
||||
%98 = OpAccessChain %58 %42 %97 %41
|
||||
OpStore %98 %86
|
||||
%99 = OpLoad %6 %46
|
||||
%100 = OpLoad %6 %46
|
||||
%101 = OpAccessChain %58 %42 %99 %100
|
||||
OpStore %101 %90
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%96 = OpFunction %2 None %32
|
||||
%95 = OpLabel
|
||||
%101 = OpVariable %40 Function %38
|
||||
%98 = OpAccessChain %97 %18 %34
|
||||
%100 = OpAccessChain %99 %21 %34
|
||||
OpBranch %102
|
||||
%103 = OpFunction %2 None %39
|
||||
%102 = OpLabel
|
||||
%103 = OpLoad %6 %101
|
||||
%104 = OpISub %6 %103 %38
|
||||
OpStore %101 %104
|
||||
%105 = OpLoad %7 %98
|
||||
%106 = OpAccessChain %33 %98 %34
|
||||
%107 = OpLoad %3 %106
|
||||
%108 = OpAccessChain %45 %98 %34 %34
|
||||
%109 = OpLoad %4 %108
|
||||
%110 = OpLoad %6 %101
|
||||
%111 = OpAccessChain %45 %98 %34 %110
|
||||
%112 = OpLoad %4 %111
|
||||
%113 = OpAccessChain %51 %98 %34 %34 %34
|
||||
%114 = OpLoad %5 %113
|
||||
%115 = OpLoad %6 %101
|
||||
%116 = OpAccessChain %51 %98 %34 %34 %115
|
||||
%117 = OpLoad %5 %116
|
||||
%118 = OpLoad %6 %101
|
||||
%119 = OpAccessChain %51 %98 %34 %118 %34
|
||||
%120 = OpLoad %5 %119
|
||||
%121 = OpLoad %6 %101
|
||||
%122 = OpLoad %6 %101
|
||||
%123 = OpAccessChain %51 %98 %34 %121 %122
|
||||
%108 = OpVariable %47 Function %45
|
||||
%105 = OpAccessChain %104 %19 %41
|
||||
%107 = OpAccessChain %106 %22 %41
|
||||
OpBranch %109
|
||||
%109 = OpLabel
|
||||
%110 = OpLoad %6 %108
|
||||
%111 = OpISub %6 %110 %45
|
||||
OpStore %108 %111
|
||||
%112 = OpLoad %7 %105
|
||||
%113 = OpAccessChain %40 %105 %41
|
||||
%114 = OpLoad %3 %113
|
||||
%115 = OpAccessChain %52 %105 %41 %41
|
||||
%116 = OpLoad %4 %115
|
||||
%117 = OpLoad %6 %108
|
||||
%118 = OpAccessChain %52 %105 %41 %117
|
||||
%119 = OpLoad %4 %118
|
||||
%120 = OpAccessChain %58 %105 %41 %41 %41
|
||||
%121 = OpLoad %5 %120
|
||||
%122 = OpLoad %6 %108
|
||||
%123 = OpAccessChain %58 %105 %41 %41 %122
|
||||
%124 = OpLoad %5 %123
|
||||
%125 = OpLoad %7 %100
|
||||
%126 = OpAccessChain %36 %100 %34
|
||||
%127 = OpLoad %3 %126
|
||||
%128 = OpAccessChain %65 %100 %34 %34
|
||||
%129 = OpLoad %4 %128
|
||||
%130 = OpLoad %6 %101
|
||||
%131 = OpAccessChain %65 %100 %34 %130
|
||||
%132 = OpLoad %4 %131
|
||||
%133 = OpAccessChain %71 %100 %34 %34 %34
|
||||
%134 = OpLoad %5 %133
|
||||
%135 = OpLoad %6 %101
|
||||
%136 = OpAccessChain %71 %100 %34 %34 %135
|
||||
%137 = OpLoad %5 %136
|
||||
%138 = OpLoad %6 %101
|
||||
%139 = OpAccessChain %71 %100 %34 %138 %34
|
||||
%140 = OpLoad %5 %139
|
||||
%141 = OpLoad %6 %101
|
||||
%142 = OpLoad %6 %101
|
||||
%143 = OpAccessChain %71 %100 %34 %141 %142
|
||||
%125 = OpLoad %6 %108
|
||||
%126 = OpAccessChain %58 %105 %41 %125 %41
|
||||
%127 = OpLoad %5 %126
|
||||
%128 = OpLoad %6 %108
|
||||
%129 = OpLoad %6 %108
|
||||
%130 = OpAccessChain %58 %105 %41 %128 %129
|
||||
%131 = OpLoad %5 %130
|
||||
%132 = OpLoad %7 %107
|
||||
%133 = OpAccessChain %43 %107 %41
|
||||
%134 = OpLoad %3 %133
|
||||
%135 = OpAccessChain %72 %107 %41 %41
|
||||
%136 = OpLoad %4 %135
|
||||
%137 = OpLoad %6 %108
|
||||
%138 = OpAccessChain %72 %107 %41 %137
|
||||
%139 = OpLoad %4 %138
|
||||
%140 = OpAccessChain %78 %107 %41 %41 %41
|
||||
%141 = OpLoad %5 %140
|
||||
%142 = OpLoad %6 %108
|
||||
%143 = OpAccessChain %78 %107 %41 %41 %142
|
||||
%144 = OpLoad %5 %143
|
||||
OpStore %98 %125
|
||||
%145 = OpAccessChain %33 %98 %34
|
||||
OpStore %145 %127
|
||||
%146 = OpAccessChain %45 %98 %34 %34
|
||||
OpStore %146 %129
|
||||
%147 = OpLoad %6 %101
|
||||
%148 = OpAccessChain %45 %98 %34 %147
|
||||
OpStore %148 %132
|
||||
%149 = OpAccessChain %51 %98 %34 %34 %34
|
||||
OpStore %149 %134
|
||||
%150 = OpLoad %6 %101
|
||||
%151 = OpAccessChain %51 %98 %34 %34 %150
|
||||
OpStore %151 %137
|
||||
%152 = OpLoad %6 %101
|
||||
%153 = OpAccessChain %51 %98 %34 %152 %34
|
||||
OpStore %153 %140
|
||||
%154 = OpLoad %6 %101
|
||||
%155 = OpLoad %6 %101
|
||||
%156 = OpAccessChain %51 %98 %34 %154 %155
|
||||
OpStore %156 %144
|
||||
%145 = OpLoad %6 %108
|
||||
%146 = OpAccessChain %78 %107 %41 %145 %41
|
||||
%147 = OpLoad %5 %146
|
||||
%148 = OpLoad %6 %108
|
||||
%149 = OpLoad %6 %108
|
||||
%150 = OpAccessChain %78 %107 %41 %148 %149
|
||||
%151 = OpLoad %5 %150
|
||||
OpStore %105 %132
|
||||
%152 = OpAccessChain %40 %105 %41
|
||||
OpStore %152 %134
|
||||
%153 = OpAccessChain %52 %105 %41 %41
|
||||
OpStore %153 %136
|
||||
%154 = OpLoad %6 %108
|
||||
%155 = OpAccessChain %52 %105 %41 %154
|
||||
OpStore %155 %139
|
||||
%156 = OpAccessChain %58 %105 %41 %41 %41
|
||||
OpStore %156 %141
|
||||
%157 = OpLoad %6 %108
|
||||
%158 = OpAccessChain %58 %105 %41 %41 %157
|
||||
OpStore %158 %144
|
||||
%159 = OpLoad %6 %108
|
||||
%160 = OpAccessChain %58 %105 %41 %159 %41
|
||||
OpStore %160 %147
|
||||
%161 = OpLoad %6 %108
|
||||
%162 = OpLoad %6 %108
|
||||
%163 = OpAccessChain %58 %105 %41 %161 %162
|
||||
OpStore %163 %151
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%158 = OpFunction %2 None %32
|
||||
%157 = OpLabel
|
||||
%163 = OpVariable %40 Function %38
|
||||
%160 = OpAccessChain %159 %24 %34
|
||||
%162 = OpAccessChain %161 %27 %34
|
||||
OpBranch %164
|
||||
%165 = OpFunction %2 None %39
|
||||
%164 = OpLabel
|
||||
%165 = OpLoad %6 %163
|
||||
%166 = OpISub %6 %165 %38
|
||||
OpStore %163 %166
|
||||
%167 = OpLoad %11 %160
|
||||
%169 = OpAccessChain %168 %160 %34
|
||||
%170 = OpLoad %8 %169
|
||||
%171 = OpAccessChain %33 %160 %34 %34 %34
|
||||
%172 = OpLoad %3 %171
|
||||
%173 = OpLoad %6 %163
|
||||
%174 = OpAccessChain %33 %160 %34 %173 %34
|
||||
%175 = OpLoad %3 %174
|
||||
%176 = OpAccessChain %45 %160 %34 %34 %34 %34
|
||||
%177 = OpLoad %4 %176
|
||||
%178 = OpLoad %6 %163
|
||||
%179 = OpAccessChain %45 %160 %34 %34 %34 %178
|
||||
%180 = OpLoad %4 %179
|
||||
%181 = OpLoad %6 %163
|
||||
%182 = OpAccessChain %45 %160 %34 %181 %34 %34
|
||||
%183 = OpLoad %4 %182
|
||||
%184 = OpLoad %6 %163
|
||||
%185 = OpLoad %6 %163
|
||||
%186 = OpAccessChain %45 %160 %34 %184 %34 %185
|
||||
%170 = OpVariable %47 Function %45
|
||||
%167 = OpAccessChain %166 %25 %41
|
||||
%169 = OpAccessChain %168 %28 %41
|
||||
OpBranch %171
|
||||
%171 = OpLabel
|
||||
%172 = OpLoad %6 %170
|
||||
%173 = OpISub %6 %172 %45
|
||||
OpStore %170 %173
|
||||
%174 = OpLoad %8 %167
|
||||
%175 = OpAccessChain %40 %167 %41
|
||||
%176 = OpLoad %3 %175
|
||||
%177 = OpLoad %6 %170
|
||||
%178 = OpAccessChain %40 %167 %177
|
||||
%179 = OpLoad %3 %178
|
||||
%180 = OpAccessChain %52 %167 %41 %41
|
||||
%181 = OpLoad %4 %180
|
||||
%182 = OpLoad %6 %170
|
||||
%183 = OpAccessChain %52 %167 %41 %182
|
||||
%184 = OpLoad %4 %183
|
||||
%185 = OpLoad %6 %170
|
||||
%186 = OpAccessChain %52 %167 %185 %41
|
||||
%187 = OpLoad %4 %186
|
||||
%188 = OpAccessChain %51 %160 %34 %34 %34 %34 %34
|
||||
%189 = OpLoad %5 %188
|
||||
%190 = OpLoad %6 %163
|
||||
%191 = OpAccessChain %51 %160 %34 %34 %34 %34 %190
|
||||
%192 = OpLoad %5 %191
|
||||
%193 = OpLoad %6 %163
|
||||
%194 = OpAccessChain %51 %160 %34 %34 %34 %193 %34
|
||||
%195 = OpLoad %5 %194
|
||||
%196 = OpLoad %6 %163
|
||||
%197 = OpLoad %6 %163
|
||||
%198 = OpAccessChain %51 %160 %34 %34 %34 %196 %197
|
||||
%188 = OpLoad %6 %170
|
||||
%189 = OpLoad %6 %170
|
||||
%190 = OpAccessChain %52 %167 %188 %189
|
||||
%191 = OpLoad %4 %190
|
||||
%192 = OpAccessChain %58 %167 %41 %41 %41
|
||||
%193 = OpLoad %5 %192
|
||||
%194 = OpLoad %6 %170
|
||||
%195 = OpAccessChain %58 %167 %41 %41 %194
|
||||
%196 = OpLoad %5 %195
|
||||
%197 = OpLoad %6 %170
|
||||
%198 = OpAccessChain %58 %167 %41 %197 %41
|
||||
%199 = OpLoad %5 %198
|
||||
%200 = OpLoad %6 %163
|
||||
%201 = OpAccessChain %51 %160 %34 %200 %34 %34 %34
|
||||
%202 = OpLoad %5 %201
|
||||
%203 = OpLoad %6 %163
|
||||
%204 = OpLoad %6 %163
|
||||
%205 = OpAccessChain %51 %160 %34 %203 %34 %34 %204
|
||||
%200 = OpLoad %6 %170
|
||||
%201 = OpLoad %6 %170
|
||||
%202 = OpAccessChain %58 %167 %41 %200 %201
|
||||
%203 = OpLoad %5 %202
|
||||
%204 = OpLoad %6 %170
|
||||
%205 = OpAccessChain %58 %167 %204 %41 %41
|
||||
%206 = OpLoad %5 %205
|
||||
%207 = OpLoad %6 %163
|
||||
%208 = OpLoad %6 %163
|
||||
%209 = OpAccessChain %51 %160 %34 %207 %34 %208 %34
|
||||
%207 = OpLoad %6 %170
|
||||
%208 = OpLoad %6 %170
|
||||
%209 = OpAccessChain %58 %167 %207 %41 %208
|
||||
%210 = OpLoad %5 %209
|
||||
%211 = OpLoad %6 %163
|
||||
%212 = OpLoad %6 %163
|
||||
%213 = OpLoad %6 %163
|
||||
%214 = OpAccessChain %51 %160 %34 %211 %34 %212 %213
|
||||
%215 = OpLoad %5 %214
|
||||
%216 = OpLoad %11 %162
|
||||
%218 = OpAccessChain %217 %162 %34
|
||||
%219 = OpLoad %8 %218
|
||||
%220 = OpAccessChain %36 %162 %34 %34 %34
|
||||
%221 = OpLoad %3 %220
|
||||
%222 = OpLoad %6 %163
|
||||
%223 = OpAccessChain %36 %162 %34 %222 %34
|
||||
%224 = OpLoad %3 %223
|
||||
%225 = OpAccessChain %65 %162 %34 %34 %34 %34
|
||||
%226 = OpLoad %4 %225
|
||||
%227 = OpLoad %6 %163
|
||||
%228 = OpAccessChain %65 %162 %34 %34 %34 %227
|
||||
%229 = OpLoad %4 %228
|
||||
%230 = OpLoad %6 %163
|
||||
%231 = OpAccessChain %65 %162 %34 %230 %34 %34
|
||||
%232 = OpLoad %4 %231
|
||||
%233 = OpLoad %6 %163
|
||||
%234 = OpLoad %6 %163
|
||||
%235 = OpAccessChain %65 %162 %34 %233 %34 %234
|
||||
%236 = OpLoad %4 %235
|
||||
%237 = OpAccessChain %71 %162 %34 %34 %34 %34 %34
|
||||
%238 = OpLoad %5 %237
|
||||
%239 = OpLoad %6 %163
|
||||
%240 = OpAccessChain %71 %162 %34 %34 %34 %34 %239
|
||||
%241 = OpLoad %5 %240
|
||||
%242 = OpLoad %6 %163
|
||||
%243 = OpAccessChain %71 %162 %34 %34 %34 %242 %34
|
||||
%244 = OpLoad %5 %243
|
||||
%245 = OpLoad %6 %163
|
||||
%246 = OpLoad %6 %163
|
||||
%247 = OpAccessChain %71 %162 %34 %34 %34 %245 %246
|
||||
%248 = OpLoad %5 %247
|
||||
%249 = OpLoad %6 %163
|
||||
%250 = OpAccessChain %71 %162 %34 %249 %34 %34 %34
|
||||
%251 = OpLoad %5 %250
|
||||
%252 = OpLoad %6 %163
|
||||
%253 = OpLoad %6 %163
|
||||
%254 = OpAccessChain %71 %162 %34 %252 %34 %34 %253
|
||||
%255 = OpLoad %5 %254
|
||||
%256 = OpLoad %6 %163
|
||||
%257 = OpLoad %6 %163
|
||||
%258 = OpAccessChain %71 %162 %34 %256 %34 %257 %34
|
||||
%259 = OpLoad %5 %258
|
||||
%260 = OpLoad %6 %163
|
||||
%261 = OpLoad %6 %163
|
||||
%262 = OpLoad %6 %163
|
||||
%263 = OpAccessChain %71 %162 %34 %260 %34 %261 %262
|
||||
%264 = OpLoad %5 %263
|
||||
OpStore %160 %216
|
||||
%265 = OpAccessChain %168 %160 %34
|
||||
OpStore %265 %219
|
||||
%266 = OpAccessChain %33 %160 %34 %34 %34
|
||||
OpStore %266 %221
|
||||
%267 = OpLoad %6 %163
|
||||
%268 = OpAccessChain %33 %160 %34 %267 %34
|
||||
OpStore %268 %224
|
||||
%269 = OpAccessChain %45 %160 %34 %34 %34 %34
|
||||
OpStore %269 %226
|
||||
%270 = OpLoad %6 %163
|
||||
%271 = OpAccessChain %45 %160 %34 %34 %34 %270
|
||||
OpStore %271 %229
|
||||
%272 = OpLoad %6 %163
|
||||
%273 = OpAccessChain %45 %160 %34 %272 %34 %34
|
||||
OpStore %273 %232
|
||||
%274 = OpLoad %6 %163
|
||||
%275 = OpLoad %6 %163
|
||||
%276 = OpAccessChain %45 %160 %34 %274 %34 %275
|
||||
OpStore %276 %236
|
||||
%277 = OpAccessChain %51 %160 %34 %34 %34 %34 %34
|
||||
OpStore %277 %238
|
||||
%278 = OpLoad %6 %163
|
||||
%279 = OpAccessChain %51 %160 %34 %34 %34 %34 %278
|
||||
OpStore %279 %241
|
||||
%280 = OpLoad %6 %163
|
||||
%281 = OpAccessChain %51 %160 %34 %34 %34 %280 %34
|
||||
OpStore %281 %244
|
||||
%282 = OpLoad %6 %163
|
||||
%283 = OpLoad %6 %163
|
||||
%284 = OpAccessChain %51 %160 %34 %34 %34 %282 %283
|
||||
OpStore %284 %248
|
||||
%285 = OpLoad %6 %163
|
||||
%286 = OpAccessChain %51 %160 %34 %285 %34 %34 %34
|
||||
OpStore %286 %251
|
||||
%287 = OpLoad %6 %163
|
||||
%288 = OpLoad %6 %163
|
||||
%289 = OpAccessChain %51 %160 %34 %287 %34 %34 %288
|
||||
OpStore %289 %255
|
||||
%290 = OpLoad %6 %163
|
||||
%291 = OpLoad %6 %163
|
||||
%292 = OpAccessChain %51 %160 %34 %290 %34 %291 %34
|
||||
OpStore %292 %259
|
||||
%293 = OpLoad %6 %163
|
||||
%294 = OpLoad %6 %163
|
||||
%295 = OpLoad %6 %163
|
||||
%296 = OpAccessChain %51 %160 %34 %293 %34 %294 %295
|
||||
OpStore %296 %264
|
||||
%211 = OpLoad %6 %170
|
||||
%212 = OpLoad %6 %170
|
||||
%213 = OpAccessChain %58 %167 %211 %212 %41
|
||||
%214 = OpLoad %5 %213
|
||||
%215 = OpLoad %6 %170
|
||||
%216 = OpLoad %6 %170
|
||||
%217 = OpLoad %6 %170
|
||||
%218 = OpAccessChain %58 %167 %215 %216 %217
|
||||
%219 = OpLoad %5 %218
|
||||
%220 = OpLoad %8 %169
|
||||
%221 = OpAccessChain %43 %169 %41
|
||||
%222 = OpLoad %3 %221
|
||||
%223 = OpLoad %6 %170
|
||||
%224 = OpAccessChain %43 %169 %223
|
||||
%225 = OpLoad %3 %224
|
||||
%226 = OpAccessChain %72 %169 %41 %41
|
||||
%227 = OpLoad %4 %226
|
||||
%228 = OpLoad %6 %170
|
||||
%229 = OpAccessChain %72 %169 %41 %228
|
||||
%230 = OpLoad %4 %229
|
||||
%231 = OpLoad %6 %170
|
||||
%232 = OpAccessChain %72 %169 %231 %41
|
||||
%233 = OpLoad %4 %232
|
||||
%234 = OpLoad %6 %170
|
||||
%235 = OpLoad %6 %170
|
||||
%236 = OpAccessChain %72 %169 %234 %235
|
||||
%237 = OpLoad %4 %236
|
||||
%238 = OpAccessChain %78 %169 %41 %41 %41
|
||||
%239 = OpLoad %5 %238
|
||||
%240 = OpLoad %6 %170
|
||||
%241 = OpAccessChain %78 %169 %41 %41 %240
|
||||
%242 = OpLoad %5 %241
|
||||
%243 = OpLoad %6 %170
|
||||
%244 = OpAccessChain %78 %169 %41 %243 %41
|
||||
%245 = OpLoad %5 %244
|
||||
%246 = OpLoad %6 %170
|
||||
%247 = OpLoad %6 %170
|
||||
%248 = OpAccessChain %78 %169 %41 %246 %247
|
||||
%249 = OpLoad %5 %248
|
||||
%250 = OpLoad %6 %170
|
||||
%251 = OpAccessChain %78 %169 %250 %41 %41
|
||||
%252 = OpLoad %5 %251
|
||||
%253 = OpLoad %6 %170
|
||||
%254 = OpLoad %6 %170
|
||||
%255 = OpAccessChain %78 %169 %253 %41 %254
|
||||
%256 = OpLoad %5 %255
|
||||
%257 = OpLoad %6 %170
|
||||
%258 = OpLoad %6 %170
|
||||
%259 = OpAccessChain %78 %169 %257 %258 %41
|
||||
%260 = OpLoad %5 %259
|
||||
%261 = OpLoad %6 %170
|
||||
%262 = OpLoad %6 %170
|
||||
%263 = OpLoad %6 %170
|
||||
%264 = OpAccessChain %78 %169 %261 %262 %263
|
||||
%265 = OpLoad %5 %264
|
||||
OpStore %167 %220
|
||||
%266 = OpAccessChain %40 %167 %41
|
||||
OpStore %266 %222
|
||||
%267 = OpLoad %6 %170
|
||||
%268 = OpAccessChain %40 %167 %267
|
||||
OpStore %268 %225
|
||||
%269 = OpAccessChain %52 %167 %41 %41
|
||||
OpStore %269 %227
|
||||
%270 = OpLoad %6 %170
|
||||
%271 = OpAccessChain %52 %167 %41 %270
|
||||
OpStore %271 %230
|
||||
%272 = OpLoad %6 %170
|
||||
%273 = OpAccessChain %52 %167 %272 %41
|
||||
OpStore %273 %233
|
||||
%274 = OpLoad %6 %170
|
||||
%275 = OpLoad %6 %170
|
||||
%276 = OpAccessChain %52 %167 %274 %275
|
||||
OpStore %276 %237
|
||||
%277 = OpAccessChain %58 %167 %41 %41 %41
|
||||
OpStore %277 %239
|
||||
%278 = OpLoad %6 %170
|
||||
%279 = OpAccessChain %58 %167 %41 %41 %278
|
||||
OpStore %279 %242
|
||||
%280 = OpLoad %6 %170
|
||||
%281 = OpAccessChain %58 %167 %41 %280 %41
|
||||
OpStore %281 %245
|
||||
%282 = OpLoad %6 %170
|
||||
%283 = OpLoad %6 %170
|
||||
%284 = OpAccessChain %58 %167 %41 %282 %283
|
||||
OpStore %284 %249
|
||||
%285 = OpLoad %6 %170
|
||||
%286 = OpAccessChain %58 %167 %285 %41 %41
|
||||
OpStore %286 %252
|
||||
%287 = OpLoad %6 %170
|
||||
%288 = OpLoad %6 %170
|
||||
%289 = OpAccessChain %58 %167 %287 %41 %288
|
||||
OpStore %289 %256
|
||||
%290 = OpLoad %6 %170
|
||||
%291 = OpLoad %6 %170
|
||||
%292 = OpAccessChain %58 %167 %290 %291 %41
|
||||
OpStore %292 %260
|
||||
%293 = OpLoad %6 %170
|
||||
%294 = OpLoad %6 %170
|
||||
%295 = OpLoad %6 %170
|
||||
%296 = OpAccessChain %58 %167 %293 %294 %295
|
||||
OpStore %296 %265
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%298 = OpFunction %2 None %32
|
||||
%298 = OpFunction %2 None %39
|
||||
%297 = OpLabel
|
||||
%299 = OpAccessChain %33 %12 %34
|
||||
%300 = OpAccessChain %36 %15 %34
|
||||
%301 = OpAccessChain %97 %18 %34
|
||||
%302 = OpAccessChain %99 %21 %34
|
||||
%303 = OpAccessChain %159 %24 %34
|
||||
%304 = OpAccessChain %161 %27 %34
|
||||
OpBranch %305
|
||||
%305 = OpLabel
|
||||
%306 = OpFunctionCall %2 %31
|
||||
%307 = OpFunctionCall %2 %96
|
||||
%308 = OpFunctionCall %2 %158
|
||||
%303 = OpVariable %47 Function %45
|
||||
%300 = OpAccessChain %299 %31 %41
|
||||
%302 = OpAccessChain %301 %34 %41
|
||||
OpBranch %304
|
||||
%304 = OpLabel
|
||||
%305 = OpLoad %6 %303
|
||||
%306 = OpISub %6 %305 %45
|
||||
OpStore %303 %306
|
||||
%307 = OpLoad %12 %300
|
||||
%309 = OpAccessChain %308 %300 %41
|
||||
%310 = OpLoad %11 %309
|
||||
%311 = OpAccessChain %40 %300 %41 %41 %41
|
||||
%312 = OpLoad %3 %311
|
||||
%313 = OpLoad %6 %303
|
||||
%314 = OpAccessChain %40 %300 %41 %313 %41
|
||||
%315 = OpLoad %3 %314
|
||||
%316 = OpAccessChain %52 %300 %41 %41 %41 %41
|
||||
%317 = OpLoad %4 %316
|
||||
%318 = OpLoad %6 %303
|
||||
%319 = OpAccessChain %52 %300 %41 %41 %41 %318
|
||||
%320 = OpLoad %4 %319
|
||||
%321 = OpLoad %6 %303
|
||||
%322 = OpAccessChain %52 %300 %41 %321 %41 %41
|
||||
%323 = OpLoad %4 %322
|
||||
%324 = OpLoad %6 %303
|
||||
%325 = OpLoad %6 %303
|
||||
%326 = OpAccessChain %52 %300 %41 %324 %41 %325
|
||||
%327 = OpLoad %4 %326
|
||||
%328 = OpAccessChain %58 %300 %41 %41 %41 %41 %41
|
||||
%329 = OpLoad %5 %328
|
||||
%330 = OpLoad %6 %303
|
||||
%331 = OpAccessChain %58 %300 %41 %41 %41 %41 %330
|
||||
%332 = OpLoad %5 %331
|
||||
%333 = OpLoad %6 %303
|
||||
%334 = OpAccessChain %58 %300 %41 %41 %41 %333 %41
|
||||
%335 = OpLoad %5 %334
|
||||
%336 = OpLoad %6 %303
|
||||
%337 = OpLoad %6 %303
|
||||
%338 = OpAccessChain %58 %300 %41 %41 %41 %336 %337
|
||||
%339 = OpLoad %5 %338
|
||||
%340 = OpLoad %6 %303
|
||||
%341 = OpAccessChain %58 %300 %41 %340 %41 %41 %41
|
||||
%342 = OpLoad %5 %341
|
||||
%343 = OpLoad %6 %303
|
||||
%344 = OpLoad %6 %303
|
||||
%345 = OpAccessChain %58 %300 %41 %343 %41 %41 %344
|
||||
%346 = OpLoad %5 %345
|
||||
%347 = OpLoad %6 %303
|
||||
%348 = OpLoad %6 %303
|
||||
%349 = OpAccessChain %58 %300 %41 %347 %41 %348 %41
|
||||
%350 = OpLoad %5 %349
|
||||
%351 = OpLoad %6 %303
|
||||
%352 = OpLoad %6 %303
|
||||
%353 = OpLoad %6 %303
|
||||
%354 = OpAccessChain %58 %300 %41 %351 %41 %352 %353
|
||||
%355 = OpLoad %5 %354
|
||||
%356 = OpLoad %12 %302
|
||||
%358 = OpAccessChain %357 %302 %41
|
||||
%359 = OpLoad %11 %358
|
||||
%360 = OpAccessChain %43 %302 %41 %41 %41
|
||||
%361 = OpLoad %3 %360
|
||||
%362 = OpLoad %6 %303
|
||||
%363 = OpAccessChain %43 %302 %41 %362 %41
|
||||
%364 = OpLoad %3 %363
|
||||
%365 = OpAccessChain %72 %302 %41 %41 %41 %41
|
||||
%366 = OpLoad %4 %365
|
||||
%367 = OpLoad %6 %303
|
||||
%368 = OpAccessChain %72 %302 %41 %41 %41 %367
|
||||
%369 = OpLoad %4 %368
|
||||
%370 = OpLoad %6 %303
|
||||
%371 = OpAccessChain %72 %302 %41 %370 %41 %41
|
||||
%372 = OpLoad %4 %371
|
||||
%373 = OpLoad %6 %303
|
||||
%374 = OpLoad %6 %303
|
||||
%375 = OpAccessChain %72 %302 %41 %373 %41 %374
|
||||
%376 = OpLoad %4 %375
|
||||
%377 = OpAccessChain %78 %302 %41 %41 %41 %41 %41
|
||||
%378 = OpLoad %5 %377
|
||||
%379 = OpLoad %6 %303
|
||||
%380 = OpAccessChain %78 %302 %41 %41 %41 %41 %379
|
||||
%381 = OpLoad %5 %380
|
||||
%382 = OpLoad %6 %303
|
||||
%383 = OpAccessChain %78 %302 %41 %41 %41 %382 %41
|
||||
%384 = OpLoad %5 %383
|
||||
%385 = OpLoad %6 %303
|
||||
%386 = OpLoad %6 %303
|
||||
%387 = OpAccessChain %78 %302 %41 %41 %41 %385 %386
|
||||
%388 = OpLoad %5 %387
|
||||
%389 = OpLoad %6 %303
|
||||
%390 = OpAccessChain %78 %302 %41 %389 %41 %41 %41
|
||||
%391 = OpLoad %5 %390
|
||||
%392 = OpLoad %6 %303
|
||||
%393 = OpLoad %6 %303
|
||||
%394 = OpAccessChain %78 %302 %41 %392 %41 %41 %393
|
||||
%395 = OpLoad %5 %394
|
||||
%396 = OpLoad %6 %303
|
||||
%397 = OpLoad %6 %303
|
||||
%398 = OpAccessChain %78 %302 %41 %396 %41 %397 %41
|
||||
%399 = OpLoad %5 %398
|
||||
%400 = OpLoad %6 %303
|
||||
%401 = OpLoad %6 %303
|
||||
%402 = OpLoad %6 %303
|
||||
%403 = OpAccessChain %78 %302 %41 %400 %41 %401 %402
|
||||
%404 = OpLoad %5 %403
|
||||
OpStore %300 %356
|
||||
%405 = OpAccessChain %308 %300 %41
|
||||
OpStore %405 %359
|
||||
%406 = OpAccessChain %40 %300 %41 %41 %41
|
||||
OpStore %406 %361
|
||||
%407 = OpLoad %6 %303
|
||||
%408 = OpAccessChain %40 %300 %41 %407 %41
|
||||
OpStore %408 %364
|
||||
%409 = OpAccessChain %52 %300 %41 %41 %41 %41
|
||||
OpStore %409 %366
|
||||
%410 = OpLoad %6 %303
|
||||
%411 = OpAccessChain %52 %300 %41 %41 %41 %410
|
||||
OpStore %411 %369
|
||||
%412 = OpLoad %6 %303
|
||||
%413 = OpAccessChain %52 %300 %41 %412 %41 %41
|
||||
OpStore %413 %372
|
||||
%414 = OpLoad %6 %303
|
||||
%415 = OpLoad %6 %303
|
||||
%416 = OpAccessChain %52 %300 %41 %414 %41 %415
|
||||
OpStore %416 %376
|
||||
%417 = OpAccessChain %58 %300 %41 %41 %41 %41 %41
|
||||
OpStore %417 %378
|
||||
%418 = OpLoad %6 %303
|
||||
%419 = OpAccessChain %58 %300 %41 %41 %41 %41 %418
|
||||
OpStore %419 %381
|
||||
%420 = OpLoad %6 %303
|
||||
%421 = OpAccessChain %58 %300 %41 %41 %41 %420 %41
|
||||
OpStore %421 %384
|
||||
%422 = OpLoad %6 %303
|
||||
%423 = OpLoad %6 %303
|
||||
%424 = OpAccessChain %58 %300 %41 %41 %41 %422 %423
|
||||
OpStore %424 %388
|
||||
%425 = OpLoad %6 %303
|
||||
%426 = OpAccessChain %58 %300 %41 %425 %41 %41 %41
|
||||
OpStore %426 %391
|
||||
%427 = OpLoad %6 %303
|
||||
%428 = OpLoad %6 %303
|
||||
%429 = OpAccessChain %58 %300 %41 %427 %41 %41 %428
|
||||
OpStore %429 %395
|
||||
%430 = OpLoad %6 %303
|
||||
%431 = OpLoad %6 %303
|
||||
%432 = OpAccessChain %58 %300 %41 %430 %41 %431 %41
|
||||
OpStore %432 %399
|
||||
%433 = OpLoad %6 %303
|
||||
%434 = OpLoad %6 %303
|
||||
%435 = OpLoad %6 %303
|
||||
%436 = OpAccessChain %58 %300 %41 %433 %41 %434 %435
|
||||
OpStore %436 %404
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%438 = OpFunction %2 None %39
|
||||
%437 = OpLabel
|
||||
%439 = OpAccessChain %40 %13 %41
|
||||
%440 = OpAccessChain %43 %16 %41
|
||||
%441 = OpAccessChain %104 %19 %41
|
||||
%442 = OpAccessChain %106 %22 %41
|
||||
%443 = OpAccessChain %166 %25 %41
|
||||
%444 = OpAccessChain %168 %28 %41
|
||||
%445 = OpAccessChain %299 %31 %41
|
||||
%446 = OpAccessChain %301 %34 %41
|
||||
OpBranch %447
|
||||
%447 = OpLabel
|
||||
%448 = OpFunctionCall %2 %38
|
||||
%449 = OpFunctionCall %2 %103
|
||||
%450 = OpFunctionCall %2 %165
|
||||
%451 = OpFunctionCall %2 %298
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
Reference in new issue
Block a user