You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the attached compute shader, I get a main0 with only one input texture/sampler and one output texture. The HLSL defines two input textures/samplers and an output texture, and things go awry ...
This is with the artefact version of shadercross from 27th February.
Input looks like:
/*****************************************************************************\
|* Parameter declarations
\*****************************************************************************/
// Declare the constant buffer for passed-in uniforms.
cbuffer UBO : register(b0, space2)
{ // size [actual]
float height : packoffset(c0.x); // 16 [16] Z perlin co-ord
float period : packoffset(c0.y); // 4 [ 0] repeat-length
float persistence : packoffset(c0.z); // 4 [ 0] amplitude/octave
int octaves : packoffset(c0.w); // 4 [ 0] number of octaves
float threshold : packoffset(c1.x); // 16 [16] black point
uint seed : packoffset(c1.y); // 4 [ 0] cubic seed
uint cperiod : packoffset(c1.z); // 4 [ 0] cubic period
uint algorithms : packoffset(c1.w); // 4 [ 0] which noise to use
};
// Declare the output image texture. This is what is written to by the noise
// function as alpha, combined with the input RGB data
RWTexture2D<unorm float4> dstImage : register(u0, space1);
// Declare the input image texture and sampler
Texture2D<float4> srcImage : register(t0, space0);
SamplerState srcSampler : register(s0, space0);
// Declare the regions image texture and sampler
Texture2D<float4> rgnImage : register(t1, space0);
SamplerState rgnSampler : register(s1, space0);
Using the attached compute shader, I get a main0 with only one input texture/sampler and one output texture. The HLSL defines two input textures/samplers and an output texture, and things go awry ...
This is with the artefact version of shadercross from 27th February.
Input looks like:
but the main0 definition is:
shader.zip
The text was updated successfully, but these errors were encountered: