Commit ed883f54 by Geoff Lang

Added a swizzleTexture method to Blit11.

Change-Id: I0af836f761893c8928a84d138a6b2d07a3e04da6 Reviewed-on: https://chromium-review.googlesource.com/176989Reviewed-by: 's avatarShannon Woods <shannonwoods@chromium.org> Commit-Queue: Shannon Woods <shannonwoods@chromium.org> Tested-by: 's avatarShannon Woods <shannonwoods@chromium.org>
parent f4b79ba8
...@@ -48,6 +48,16 @@ ...@@ -48,6 +48,16 @@
#include "libGLESv2/renderer/d3d11/shaders/compiled/passthroughlum3d11ps.h" #include "libGLESv2/renderer/d3d11/shaders/compiled/passthroughlum3d11ps.h"
#include "libGLESv2/renderer/d3d11/shaders/compiled/passthroughlumalpha3d11ps.h" #include "libGLESv2/renderer/d3d11/shaders/compiled/passthroughlumalpha3d11ps.h"
#include "libGLESv2/renderer/d3d11/shaders/compiled/swizzlef2dps.h"
#include "libGLESv2/renderer/d3d11/shaders/compiled/swizzlei2dps.h"
#include "libGLESv2/renderer/d3d11/shaders/compiled/swizzleui2dps.h"
#include "libGLESv2/renderer/d3d11/shaders/compiled/swizzlef3dps.h"
#include "libGLESv2/renderer/d3d11/shaders/compiled/swizzlei3dps.h"
#include "libGLESv2/renderer/d3d11/shaders/compiled/swizzleui3dps.h"
#include "libGLESv2/renderer/d3d11/shaders/compiled/swizzlef2darrayps.h"
#include "libGLESv2/renderer/d3d11/shaders/compiled/swizzlei2darrayps.h"
#include "libGLESv2/renderer/d3d11/shaders/compiled/swizzleui2darrayps.h"
namespace rx namespace rx
{ {
...@@ -138,6 +148,8 @@ static void Write3DVertices(const gl::Box &sourceArea, const gl::Extents &source ...@@ -138,6 +148,8 @@ static void Write3DVertices(const gl::Box &sourceArea, const gl::Extents &source
void *outVertices, unsigned int *outStride, unsigned int *outVertexCount, void *outVertices, unsigned int *outStride, unsigned int *outVertexCount,
D3D11_PRIMITIVE_TOPOLOGY *outTopology) D3D11_PRIMITIVE_TOPOLOGY *outTopology)
{ {
ASSERT(sourceSize.depth > 0 && destSize.depth > 0);
float x1, y1, x2, y2, u1, v1, u2, v2; float x1, y1, x2, y2, u1, v1, u2, v2;
GenerateVertexCoords(sourceArea, sourceSize, destArea, destSize, &x1, &y1, &x2, &y2, &u1, &v1, &u2, &v2); GenerateVertexCoords(sourceArea, sourceSize, destArea, destSize, &x1, &y1, &x2, &y2, &u1, &v1, &u2, &v2);
...@@ -145,7 +157,7 @@ static void Write3DVertices(const gl::Box &sourceArea, const gl::Extents &source ...@@ -145,7 +157,7 @@ static void Write3DVertices(const gl::Box &sourceArea, const gl::Extents &source
for (int i = 0; i < destSize.depth; i++) for (int i = 0; i < destSize.depth; i++)
{ {
float readDepth = ((i * 2) + 0.5f) / (sourceSize.depth - 1); float readDepth = (float)i / std::max(destSize.depth - 1, 1);
d3d11::SetPositionLayerTexCoord3DVertex(&vertices[i * 6 + 0], x1, y1, i, u1, v2, readDepth); d3d11::SetPositionLayerTexCoord3DVertex(&vertices[i * 6 + 0], x1, y1, i, u1, v2, readDepth);
d3d11::SetPositionLayerTexCoord3DVertex(&vertices[i * 6 + 1], x1, y2, i, u1, v1, readDepth); d3d11::SetPositionLayerTexCoord3DVertex(&vertices[i * 6 + 1], x1, y2, i, u1, v1, readDepth);
...@@ -162,18 +174,19 @@ static void Write3DVertices(const gl::Box &sourceArea, const gl::Extents &source ...@@ -162,18 +174,19 @@ static void Write3DVertices(const gl::Box &sourceArea, const gl::Extents &source
} }
Blit11::Blit11(rx::Renderer11 *renderer) Blit11::Blit11(rx::Renderer11 *renderer)
: mRenderer(renderer), mBlitShaderMap(compareBlitParameters), mVertexBuffer(NULL), : mRenderer(renderer), mBlitShaderMap(compareBlitParameters), mSwizzleShaderMap(compareSwizzleParameters),
mPointSampler(NULL), mLinearSampler(NULL), mScissorEnabledRasterizerState(NULL), mVertexBuffer(NULL), mPointSampler(NULL), mLinearSampler(NULL), mScissorEnabledRasterizerState(NULL),
mScissorDisabledRasterizerState(NULL), mDepthStencilState(NULL), mScissorDisabledRasterizerState(NULL), mDepthStencilState(NULL),
mQuad2DIL(NULL), mQuad2DVS(NULL), mDepthPS(NULL), mQuad2DIL(NULL), mQuad2DVS(NULL), mDepthPS(NULL),
mQuad3DIL(NULL), mQuad3DVS(NULL), mQuad3DGS(NULL) mQuad3DIL(NULL), mQuad3DVS(NULL), mQuad3DGS(NULL),
mSwizzleCB(NULL)
{ {
HRESULT result; HRESULT result;
ID3D11Device *device = mRenderer->getDevice(); ID3D11Device *device = mRenderer->getDevice();
D3D11_BUFFER_DESC vbDesc; D3D11_BUFFER_DESC vbDesc;
vbDesc.ByteWidth = std::max(sizeof(d3d11::PositionLayerTexCoord3DVertex) * 6 * renderer->getMaxTextureDepth(), vbDesc.ByteWidth = std::max(sizeof(d3d11::PositionLayerTexCoord3DVertex), sizeof(d3d11::PositionTexCoordVertex)) *
sizeof(d3d11::PositionTexCoordVertex) * 4); 6 * renderer->getMaxTextureDepth();
vbDesc.Usage = D3D11_USAGE_DYNAMIC; vbDesc.Usage = D3D11_USAGE_DYNAMIC;
vbDesc.BindFlags = D3D11_BIND_VERTEX_BUFFER; vbDesc.BindFlags = D3D11_BIND_VERTEX_BUFFER;
vbDesc.CPUAccessFlags = D3D11_CPU_ACCESS_WRITE; vbDesc.CPUAccessFlags = D3D11_CPU_ACCESS_WRITE;
...@@ -302,6 +315,18 @@ Blit11::Blit11(rx::Renderer11 *renderer) ...@@ -302,6 +315,18 @@ Blit11::Blit11(rx::Renderer11 *renderer)
d3d11::SetDebugName(mQuad3DGS, "Renderer11 copy 3D texture geometry shader"); d3d11::SetDebugName(mQuad3DGS, "Renderer11 copy 3D texture geometry shader");
buildShaderMap(); buildShaderMap();
D3D11_BUFFER_DESC swizzleBufferDesc;
swizzleBufferDesc.ByteWidth = sizeof(unsigned int) * 4;
swizzleBufferDesc.Usage = D3D11_USAGE_DYNAMIC;
swizzleBufferDesc.BindFlags = D3D11_BIND_CONSTANT_BUFFER;
swizzleBufferDesc.CPUAccessFlags = D3D11_CPU_ACCESS_WRITE;
swizzleBufferDesc.MiscFlags = 0;
swizzleBufferDesc.StructureByteStride = 0;
result = device->CreateBuffer(&swizzleBufferDesc, NULL, &mSwizzleCB);
ASSERT(SUCCEEDED(result));
d3d11::SetDebugName(mSwizzleCB, "Blit11 swizzle constant buffer");
} }
Blit11::~Blit11() Blit11::~Blit11()
...@@ -321,9 +346,165 @@ Blit11::~Blit11() ...@@ -321,9 +346,165 @@ Blit11::~Blit11()
SafeRelease(mQuad3DVS); SafeRelease(mQuad3DVS);
SafeRelease(mQuad3DGS); SafeRelease(mQuad3DGS);
SafeRelease(mSwizzleCB);
clearShaderMap(); clearShaderMap();
} }
static inline unsigned int GetSwizzleIndex(GLenum swizzle)
{
unsigned int colorIndex = 0;
switch (swizzle)
{
case GL_RED: colorIndex = 0; break;
case GL_GREEN: colorIndex = 1; break;
case GL_BLUE: colorIndex = 2; break;
case GL_ALPHA: colorIndex = 3; break;
case GL_ZERO: colorIndex = 4; break;
case GL_ONE: colorIndex = 5; break;
default: UNREACHABLE(); break;
}
return colorIndex;
}
bool Blit11::swizzleTexture(ID3D11ShaderResourceView *source, ID3D11RenderTargetView *dest, const gl::Extents &size,
GLenum swizzleRed, GLenum swizzleGreen, GLenum swizzleBlue, GLenum swizzleAlpha)
{
HRESULT result;
ID3D11DeviceContext *deviceContext = mRenderer->getDeviceContext();
D3D11_SHADER_RESOURCE_VIEW_DESC sourceSRVDesc;
source->GetDesc(&sourceSRVDesc);
GLenum sourceInternalFormat = d3d11_gl::GetInternalFormat(sourceSRVDesc.Format, mRenderer->getCurrentClientVersion());
GLenum shaderType = GL_NONE;
switch (gl::GetComponentType(sourceInternalFormat, mRenderer->getCurrentClientVersion()))
{
case GL_UNSIGNED_NORMALIZED:
case GL_SIGNED_NORMALIZED:
case GL_FLOAT:
shaderType = GL_FLOAT;
break;
case GL_INT:
shaderType = GL_INT;
break;
case GL_UNSIGNED_INT:
shaderType = GL_UNSIGNED_INT;
break;
default:
UNREACHABLE();
break;
}
SwizzleParameters parameters = { 0 };
parameters.mDestinationType = shaderType;
parameters.mViewDimension = sourceSRVDesc.ViewDimension;
SwizzleShaderMap::const_iterator i = mSwizzleShaderMap.find(parameters);
if (i == mSwizzleShaderMap.end())
{
UNREACHABLE();
return false;
}
const Shader &shader = i->second;
// Set vertices
D3D11_MAPPED_SUBRESOURCE mappedResource;
result = deviceContext->Map(mVertexBuffer, 0, D3D11_MAP_WRITE_DISCARD, 0, &mappedResource);
if (FAILED(result))
{
ERR("Failed to map vertex buffer for texture swizzle, HRESULT: 0x%X.", result);
return false;
}
UINT stride = 0;
UINT startIdx = 0;
UINT drawCount = 0;
D3D11_PRIMITIVE_TOPOLOGY topology;
gl::Box area(0, 0, 0, size.width, size.height, size.depth);
shader.mVertexWriteFunction(area, size, area, size, mappedResource.pData, &stride, &drawCount, &topology);
deviceContext->Unmap(mVertexBuffer, 0);
// Set constant buffer
result = deviceContext->Map(mSwizzleCB, 0, D3D11_MAP_WRITE_DISCARD, 0, &mappedResource);
if (FAILED(result))
{
ERR("Failed to map constant buffer for texture swizzle, HRESULT: 0x%X.", result);
return false;
}
unsigned int *swizzleIndices = reinterpret_cast<unsigned int*>(mappedResource.pData);
swizzleIndices[0] = GetSwizzleIndex(swizzleRed);
swizzleIndices[1] = GetSwizzleIndex(swizzleGreen);
swizzleIndices[2] = GetSwizzleIndex(swizzleBlue);
swizzleIndices[3] = GetSwizzleIndex(swizzleAlpha);
deviceContext->Unmap(mSwizzleCB, 0);
// Apply vertex buffer
deviceContext->IASetVertexBuffers(0, 1, &mVertexBuffer, &stride, &startIdx);
// Apply constant buffer
deviceContext->PSSetConstantBuffers(0, 1, &mSwizzleCB);
// Apply state
deviceContext->OMSetBlendState(NULL, NULL, 0xFFFFFFF);
deviceContext->OMSetDepthStencilState(NULL, 0xFFFFFFFF);
deviceContext->RSSetState(mScissorDisabledRasterizerState);
// Apply shaders
deviceContext->IASetInputLayout(shader.mInputLayout);
deviceContext->IASetPrimitiveTopology(topology);
deviceContext->VSSetShader(shader.mVertexShader, NULL, 0);
deviceContext->PSSetShader(shader.mPixelShader, NULL, 0);
deviceContext->GSSetShader(shader.mGeometryShader, NULL, 0);
// Unset the currently bound shader resource to avoid conflicts
ID3D11ShaderResourceView *const nullSRV = NULL;
deviceContext->PSSetShaderResources(0, 1, &nullSRV);
// Apply render target
mRenderer->setOneTimeRenderTarget(dest);
// Set the viewport
D3D11_VIEWPORT viewport;
viewport.TopLeftX = 0;
viewport.TopLeftY = 0;
viewport.Width = size.width;
viewport.Height = size.height;
viewport.MinDepth = 0.0f;
viewport.MaxDepth = 1.0f;
deviceContext->RSSetViewports(1, &viewport);
// Apply textures
deviceContext->PSSetShaderResources(0, 1, &source);
// Apply samplers
deviceContext->PSSetSamplers(0, 1, &mPointSampler);
// Draw the quad
deviceContext->Draw(drawCount, 0);
// Unbind textures and render targets and vertex buffer
deviceContext->PSSetShaderResources(0, 1, &nullSRV);
mRenderer->unapplyRenderTargets();
UINT zero = 0;
ID3D11Buffer *const nullBuffer = NULL;
deviceContext->IASetVertexBuffers(0, 1, &nullBuffer, &zero, &zero);
mRenderer->markAllStateDirty();
return true;
}
bool Blit11::copyTexture(ID3D11ShaderResourceView *source, const gl::Box &sourceArea, const gl::Extents &sourceSize, bool Blit11::copyTexture(ID3D11ShaderResourceView *source, const gl::Box &sourceArea, const gl::Extents &sourceSize,
ID3D11RenderTargetView *dest, const gl::Box &destArea, const gl::Extents &destSize, ID3D11RenderTargetView *dest, const gl::Box &destArea, const gl::Extents &destSize,
const gl::Rectangle *scissor, GLenum destFormat, GLenum filter) const gl::Rectangle *scissor, GLenum destFormat, GLenum filter)
...@@ -702,6 +883,11 @@ bool Blit11::compareBlitParameters(const Blit11::BlitParameters &a, const Blit11 ...@@ -702,6 +883,11 @@ bool Blit11::compareBlitParameters(const Blit11::BlitParameters &a, const Blit11
return memcmp(&a, &b, sizeof(Blit11::BlitParameters)) < 0; return memcmp(&a, &b, sizeof(Blit11::BlitParameters)) < 0;
} }
bool Blit11::compareSwizzleParameters(const SwizzleParameters &a, const SwizzleParameters &b)
{
return memcmp(&a, &b, sizeof(Blit11::SwizzleParameters)) < 0;
}
void Blit11::add2DBlitShaderToMap(GLenum destFormat, bool signedInteger, ID3D11PixelShader *ps) void Blit11::add2DBlitShaderToMap(GLenum destFormat, bool signedInteger, ID3D11PixelShader *ps)
{ {
BlitParameters params = { 0 }; BlitParameters params = { 0 };
...@@ -742,6 +928,43 @@ void Blit11::add3DBlitShaderToMap(GLenum destFormat, bool signedInteger, ID3D11P ...@@ -742,6 +928,43 @@ void Blit11::add3DBlitShaderToMap(GLenum destFormat, bool signedInteger, ID3D11P
mBlitShaderMap[params] = shader; mBlitShaderMap[params] = shader;
} }
void Blit11::addSwizzleShaderToMap(GLenum destType, D3D11_SRV_DIMENSION viewDimension, ID3D11PixelShader *ps)
{
SwizzleParameters params = { 0 };
params.mDestinationType = destType;
params.mViewDimension = viewDimension;
ASSERT(mSwizzleShaderMap.find(params) == mSwizzleShaderMap.end());
ASSERT(ps);
Shader shader;
switch (viewDimension)
{
case D3D_SRV_DIMENSION_TEXTURE2D:
shader.mVertexWriteFunction = Write2DVertices;
shader.mInputLayout = mQuad2DIL;
shader.mVertexShader = mQuad2DVS;
shader.mGeometryShader = NULL;
break;
case D3D_SRV_DIMENSION_TEXTURE3D:
case D3D_SRV_DIMENSION_TEXTURE2DARRAY:
case D3D_SRV_DIMENSION_TEXTURECUBE:
shader.mVertexWriteFunction = Write3DVertices;
shader.mInputLayout = mQuad3DIL;
shader.mVertexShader = mQuad3DVS;
shader.mGeometryShader = mQuad3DGS;
break;
default:
UNREACHABLE();
break;
}
shader.mPixelShader = ps;
mSwizzleShaderMap[params] = shader;
}
void Blit11::buildShaderMap() void Blit11::buildShaderMap()
{ {
ID3D11Device *device = mRenderer->getDevice(); ID3D11Device *device = mRenderer->getDevice();
...@@ -779,6 +1002,22 @@ void Blit11::buildShaderMap() ...@@ -779,6 +1002,22 @@ void Blit11::buildShaderMap()
add3DBlitShaderToMap(GL_ALPHA, false, d3d11::CompilePS(device, g_PS_PassthroughRGBA3D, "Blit11 3D alpha pixel shader" )); add3DBlitShaderToMap(GL_ALPHA, false, d3d11::CompilePS(device, g_PS_PassthroughRGBA3D, "Blit11 3D alpha pixel shader" ));
add3DBlitShaderToMap(GL_LUMINANCE, false, d3d11::CompilePS(device, g_PS_PassthroughLum3D, "Blit11 3D luminance pixel shader" )); add3DBlitShaderToMap(GL_LUMINANCE, false, d3d11::CompilePS(device, g_PS_PassthroughLum3D, "Blit11 3D luminance pixel shader" ));
add3DBlitShaderToMap(GL_LUMINANCE_ALPHA, false, d3d11::CompilePS(device, g_PS_PassthroughLumAlpha3D, "Blit11 3D luminance alpha pixel shader")); add3DBlitShaderToMap(GL_LUMINANCE_ALPHA, false, d3d11::CompilePS(device, g_PS_PassthroughLumAlpha3D, "Blit11 3D luminance alpha pixel shader"));
addSwizzleShaderToMap(GL_FLOAT, D3D_SRV_DIMENSION_TEXTURE2D, d3d11::CompilePS(device, g_PS_SwizzleF2D, "Blit11 2D F swizzle pixel shader" ));
addSwizzleShaderToMap(GL_UNSIGNED_INT, D3D_SRV_DIMENSION_TEXTURE2D, d3d11::CompilePS(device, g_PS_SwizzleUI2D, "Blit11 2D UI swizzle pixel shader"));
addSwizzleShaderToMap(GL_INT, D3D_SRV_DIMENSION_TEXTURE2D, d3d11::CompilePS(device, g_PS_SwizzleI2D, "Blit11 2D I swizzle pixel shader" ));
addSwizzleShaderToMap(GL_FLOAT, D3D_SRV_DIMENSION_TEXTURECUBE, d3d11::CompilePS(device, g_PS_SwizzleF2DArray, "Blit11 2D Cube F swizzle pixel shader" ));
addSwizzleShaderToMap(GL_UNSIGNED_INT, D3D_SRV_DIMENSION_TEXTURECUBE, d3d11::CompilePS(device, g_PS_SwizzleUI2DArray, "Blit11 2D Cube UI swizzle pixel shader"));
addSwizzleShaderToMap(GL_INT, D3D_SRV_DIMENSION_TEXTURECUBE, d3d11::CompilePS(device, g_PS_SwizzleI2DArray, "Blit11 2D Cube I swizzle pixel shader" ));
addSwizzleShaderToMap(GL_FLOAT, D3D_SRV_DIMENSION_TEXTURE3D, d3d11::CompilePS(device, g_PS_SwizzleF3D, "Blit11 3D F swizzle pixel shader" ));
addSwizzleShaderToMap(GL_UNSIGNED_INT, D3D_SRV_DIMENSION_TEXTURE3D, d3d11::CompilePS(device, g_PS_SwizzleUI3D, "Blit11 3D UI swizzle pixel shader"));
addSwizzleShaderToMap(GL_INT, D3D_SRV_DIMENSION_TEXTURE3D, d3d11::CompilePS(device, g_PS_SwizzleI3D, "Blit11 3D I swizzle pixel shader" ));
addSwizzleShaderToMap(GL_FLOAT, D3D_SRV_DIMENSION_TEXTURE2DARRAY, d3d11::CompilePS(device, g_PS_SwizzleF2DArray, "Blit11 2D Array F swizzle pixel shader" ));
addSwizzleShaderToMap(GL_UNSIGNED_INT, D3D_SRV_DIMENSION_TEXTURE2DARRAY, d3d11::CompilePS(device, g_PS_SwizzleUI2DArray, "Blit11 2D Array UI swizzle pixel shader"));
addSwizzleShaderToMap(GL_INT, D3D_SRV_DIMENSION_TEXTURE2DARRAY, d3d11::CompilePS(device, g_PS_SwizzleI2DArray, "Blit11 2D Array I swizzle pixel shader" ));
} }
void Blit11::clearShaderMap() void Blit11::clearShaderMap()
...@@ -789,6 +1028,13 @@ void Blit11::clearShaderMap() ...@@ -789,6 +1028,13 @@ void Blit11::clearShaderMap()
SafeRelease(shader.mPixelShader); SafeRelease(shader.mPixelShader);
} }
mBlitShaderMap.clear(); mBlitShaderMap.clear();
for (SwizzleShaderMap::iterator i = mSwizzleShaderMap.begin(); i != mSwizzleShaderMap.end(); ++i)
{
Shader &shader = i->second;
SafeRelease(shader.mPixelShader);
}
mSwizzleShaderMap.clear();
} }
} }
...@@ -28,6 +28,9 @@ class Blit11 ...@@ -28,6 +28,9 @@ class Blit11
explicit Blit11(Renderer11 *renderer); explicit Blit11(Renderer11 *renderer);
~Blit11(); ~Blit11();
bool swizzleTexture(ID3D11ShaderResourceView *source, ID3D11RenderTargetView *dest, const gl::Extents &size,
GLenum swizzleRed, GLenum swizzleGreen, GLenum swizzleBlue, GLenum swizzleAlpha);
bool copyTexture(ID3D11ShaderResourceView *source, const gl::Box &sourceArea, const gl::Extents &sourceSize, bool copyTexture(ID3D11ShaderResourceView *source, const gl::Box &sourceArea, const gl::Extents &sourceSize,
ID3D11RenderTargetView *dest, const gl::Box &destArea, const gl::Extents &destSize, ID3D11RenderTargetView *dest, const gl::Box &destArea, const gl::Extents &destSize,
const gl::Rectangle *scissor, GLenum destFormat, GLenum filter); const gl::Rectangle *scissor, GLenum destFormat, GLenum filter);
...@@ -81,6 +84,20 @@ class Blit11 ...@@ -81,6 +84,20 @@ class Blit11
void add2DBlitShaderToMap(GLenum destFormat, bool signedInteger, ID3D11PixelShader *ps); void add2DBlitShaderToMap(GLenum destFormat, bool signedInteger, ID3D11PixelShader *ps);
void add3DBlitShaderToMap(GLenum destFormat, bool signedInteger, ID3D11PixelShader *ps); void add3DBlitShaderToMap(GLenum destFormat, bool signedInteger, ID3D11PixelShader *ps);
struct SwizzleParameters
{
GLenum mDestinationType;
D3D11_SRV_DIMENSION mViewDimension;
};
static bool compareSwizzleParameters(const SwizzleParameters &a, const SwizzleParameters &b);
typedef bool (*SwizzleParametersComparisonFunction)(const SwizzleParameters&, const SwizzleParameters &);
typedef std::map<SwizzleParameters, Shader, SwizzleParametersComparisonFunction> SwizzleShaderMap;
SwizzleShaderMap mSwizzleShaderMap;
void addSwizzleShaderToMap(GLenum destType, D3D11_SRV_DIMENSION viewDimension, ID3D11PixelShader *ps);
void buildShaderMap(); void buildShaderMap();
void clearShaderMap(); void clearShaderMap();
...@@ -99,8 +116,11 @@ class Blit11 ...@@ -99,8 +116,11 @@ class Blit11
ID3D11VertexShader *mQuad3DVS; ID3D11VertexShader *mQuad3DVS;
ID3D11GeometryShader *mQuad3DGS; ID3D11GeometryShader *mQuad3DGS;
ID3D11Buffer *mSwizzleCB;
DISALLOW_COPY_AND_ASSIGN(Blit11); DISALLOW_COPY_AND_ASSIGN(Blit11);
}; };
} }
#endif // LIBGLESV2_BLIT11_H_ #endif // LIBGLESV2_BLIT11_H_
Texture2D<float4> TextureF2D : register(t0);
Texture2D<uint4> TextureUI2D : register(t0);
Texture2D<int4> TextureI2D : register(t0);
Texture3D<float4> TextureF3D : register(t0);
Texture3D<uint4> TextureUI3D : register(t0);
Texture3D<int4> TextureI3D : register(t0);
Texture2DArray<float4> TextureF2DArray : register(t0);
Texture2DArray<uint4> TextureUI2DArray : register(t0);
Texture2DArray<int4> TextureI2DArray : register(t0);
SamplerState Sampler : register(s0);
cbuffer SwizzleProperties : register(b0)
{
uint4 SwizzleIndices : packoffset(c0);
}
float4 SwizzleLookup(in float4 sample)
{
float lookup[6] = { sample[0], sample[1], sample[2], sample[3], 0.0f, 1.0f };
return float4(lookup[SwizzleIndices[0]], lookup[SwizzleIndices[1]], lookup[SwizzleIndices[2]], lookup[SwizzleIndices[3]]);
}
int4 SwizzleLookup(in int4 sample)
{
int lookup[6] = { sample[0], sample[1], sample[2], sample[3], 0.0f, 1.0f };
return int4(lookup[SwizzleIndices[0]], lookup[SwizzleIndices[1]], lookup[SwizzleIndices[2]], lookup[SwizzleIndices[3]]);
}
uint4 SwizzleLookup(in uint4 sample)
{
uint lookup[6] = { sample[0], sample[1], sample[2], sample[3], 0.0f, 1.0f };
return uint4(lookup[SwizzleIndices[0]], lookup[SwizzleIndices[1]], lookup[SwizzleIndices[2]], lookup[SwizzleIndices[3]]);
}
float4 PS_SwizzleF2D(in float4 inPosition : SV_POSITION, in float2 inTexCoord : TEXCOORD0) : SV_TARGET0
{
return SwizzleLookup(TextureF2D.Sample(Sampler, inTexCoord));
}
int4 PS_SwizzleI2D(in float4 inPosition : SV_POSITION, in float2 inTexCoord : TEXCOORD0) : SV_TARGET0
{
uint2 size;
TextureI2D.GetDimensions(size.x, size.y);
return SwizzleLookup(TextureI2D.Load(int3(size * inTexCoord, 0)));
}
uint4 PS_SwizzleUI2D(in float4 inPosition : SV_POSITION, in float2 inTexCoord : TEXCOORD0) : SV_TARGET0
{
uint2 size;
TextureUI2D.GetDimensions(size.x, size.y);
return SwizzleLookup(TextureUI2D.Load(int3(size * inTexCoord, 0)));
}
float4 PS_SwizzleF3D(in float4 inPosition : SV_POSITION, in uint inLayer : SV_RENDERTARGETARRAYINDEX, in float3 inTexCoord : TEXCOORD0) : SV_TARGET0
{
return SwizzleLookup(TextureF3D.Sample(Sampler, inTexCoord));
}
int4 PS_SwizzleI3D(in float4 inPosition : SV_POSITION, in uint inLayer : SV_RENDERTARGETARRAYINDEX, in float3 inTexCoord : TEXCOORD0) : SV_TARGET0
{
uint3 size;
TextureI3D.GetDimensions(size.x, size.y, size.z);
return SwizzleLookup(TextureI3D.Load(int4(size * inTexCoord, 0)));
}
uint4 PS_SwizzleUI3D(in float4 inPosition : SV_POSITION, in uint inLayer : SV_RENDERTARGETARRAYINDEX, in float3 inTexCoord : TEXCOORD0) : SV_TARGET0
{
uint3 size;
TextureUI3D.GetDimensions(size.x, size.y, size.z);
return SwizzleLookup(TextureUI3D.Load(int4(size * inTexCoord, 0)));
}
float4 PS_SwizzleF2DArray(in float4 inPosition : SV_POSITION, in uint inLayer : SV_RENDERTARGETARRAYINDEX, in float3 inTexCoord : TEXCOORD0) : SV_TARGET0
{
return SwizzleLookup(TextureF2DArray.Sample(Sampler, float3(inTexCoord.xy, inLayer)));
}
int4 PS_SwizzleI2DArray(in float4 inPosition : SV_POSITION, in uint inLayer : SV_RENDERTARGETARRAYINDEX, in float3 inTexCoord : TEXCOORD0) : SV_TARGET0
{
uint3 size;
TextureI2DArray.GetDimensions(size.x, size.y, size.z);
return SwizzleLookup(TextureI2DArray.Load(int4(size.xy * inTexCoord.xy, inLayer, 0)));
}
uint4 PS_SwizzleUI2DArray(in float4 inPosition : SV_POSITION, in uint inLayer : SV_RENDERTARGETARRAYINDEX, in float3 inTexCoord : TEXCOORD0) : SV_TARGET0
{
uint3 size;
TextureUI2DArray.GetDimensions(size.x, size.y, size.z);
return SwizzleLookup(TextureUI2DArray.Load(int4(size.xy * inTexCoord.xy, inLayer, 0)));
}
#if 0
//
// Generated by Microsoft (R) HLSL Shader Compiler 9.30.9200.16384
//
//
///
// Buffer Definitions:
//
// cbuffer SwizzleProperties
// {
//
// uint4 SwizzleIndices; // Offset: 0 Size: 16
//
// }
//
//
// Resource Bindings:
//
// Name Type Format Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// Sampler sampler NA NA 0 1
// TextureF2DArray texture float4 2darray 0 1
// SwizzleProperties cbuffer NA NA 0 1
//
//
//
// Input signature:
//
// Name Index Mask Register SysValue Format Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_POSITION 0 xyzw 0 POS float
// SV_RENDERTARGETARRAYINDEX 0 x 1 RTINDEX uint x
// TEXCOORD 0 xyz 2 NONE float xy
//
//
// Output signature:
//
// Name Index Mask Register SysValue Format Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_TARGET 0 xyzw 0 TARGET float xyzw
//
ps_4_0
dcl_constantbuffer cb0[1], immediateIndexed
dcl_sampler s0, mode_default
dcl_resource_texture2darray (float,float,float,float) t0
dcl_input_ps_siv constant v1.x, rendertarget_array_index
dcl_input_ps linear v2.xy
dcl_output o0.xyzw
dcl_temps 1
dcl_indexableTemp x0[6], 4
utof r0.z, v1.x
mov r0.xy, v2.xyxx
sample r0.xyzw, r0.xyzx, t0.xyzw, s0
mov x0[0].x, r0.x
mov x0[1].x, r0.y
mov x0[2].x, r0.z
mov x0[3].x, r0.w
mov x0[4].x, l(0)
mov x0[5].x, l(1.000000)
mov r0.x, cb0[0].x
mov o0.x, x0[r0.x + 0].x
mov r0.x, cb0[0].y
mov o0.y, x0[r0.x + 0].x
mov r0.x, cb0[0].z
mov o0.z, x0[r0.x + 0].x
mov r0.x, cb0[0].w
mov o0.w, x0[r0.x + 0].x
ret
// Approximately 18 instruction slots used
#endif
const BYTE g_PS_SwizzleF2DArray[] =
{
68, 88, 66, 67, 161, 112,
176, 131, 216, 246, 27, 65,
39, 246, 72, 161, 231, 81,
229, 143, 1, 0, 0, 0,
204, 4, 0, 0, 5, 0,
0, 0, 52, 0, 0, 0,
104, 1, 0, 0, 240, 1,
0, 0, 36, 2, 0, 0,
80, 4, 0, 0, 82, 68,
69, 70, 44, 1, 0, 0,
1, 0, 0, 0, 168, 0,
0, 0, 3, 0, 0, 0,
28, 0, 0, 0, 0, 4,
255, 255, 0, 1, 0, 0,
248, 0, 0, 0, 124, 0,
0, 0, 3, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
132, 0, 0, 0, 2, 0,
0, 0, 5, 0, 0, 0,
5, 0, 0, 0, 255, 255,
255, 255, 0, 0, 0, 0,
1, 0, 0, 0, 13, 0,
0, 0, 148, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 83, 97,
109, 112, 108, 101, 114, 0,
84, 101, 120, 116, 117, 114,
101, 70, 50, 68, 65, 114,
114, 97, 121, 0, 83, 119,
105, 122, 122, 108, 101, 80,
114, 111, 112, 101, 114, 116,
105, 101, 115, 0, 171, 171,
148, 0, 0, 0, 1, 0,
0, 0, 192, 0, 0, 0,
16, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
216, 0, 0, 0, 0, 0,
0, 0, 16, 0, 0, 0,
2, 0, 0, 0, 232, 0,
0, 0, 0, 0, 0, 0,
83, 119, 105, 122, 122, 108,
101, 73, 110, 100, 105, 99,
101, 115, 0, 171, 1, 0,
19, 0, 1, 0, 4, 0,
0, 0, 0, 0, 0, 0,
0, 0, 77, 105, 99, 114,
111, 115, 111, 102, 116, 32,
40, 82, 41, 32, 72, 76,
83, 76, 32, 83, 104, 97,
100, 101, 114, 32, 67, 111,
109, 112, 105, 108, 101, 114,
32, 57, 46, 51, 48, 46,
57, 50, 48, 48, 46, 49,
54, 51, 56, 52, 0, 171,
73, 83, 71, 78, 128, 0,
0, 0, 3, 0, 0, 0,
8, 0, 0, 0, 80, 0,
0, 0, 0, 0, 0, 0,
1, 0, 0, 0, 3, 0,
0, 0, 0, 0, 0, 0,
15, 0, 0, 0, 92, 0,
0, 0, 0, 0, 0, 0,
4, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 1, 0, 0, 118, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 3, 0,
0, 0, 2, 0, 0, 0,
7, 3, 0, 0, 83, 86,
95, 80, 79, 83, 73, 84,
73, 79, 78, 0, 83, 86,
95, 82, 69, 78, 68, 69,
82, 84, 65, 82, 71, 69,
84, 65, 82, 82, 65, 89,
73, 78, 68, 69, 88, 0,
84, 69, 88, 67, 79, 79,
82, 68, 0, 171, 79, 83,
71, 78, 44, 0, 0, 0,
1, 0, 0, 0, 8, 0,
0, 0, 32, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 3, 0, 0, 0,
0, 0, 0, 0, 15, 0,
0, 0, 83, 86, 95, 84,
65, 82, 71, 69, 84, 0,
171, 171, 83, 72, 68, 82,
36, 2, 0, 0, 64, 0,
0, 0, 137, 0, 0, 0,
89, 0, 0, 4, 70, 142,
32, 0, 0, 0, 0, 0,
1, 0, 0, 0, 90, 0,
0, 3, 0, 96, 16, 0,
0, 0, 0, 0, 88, 64,
0, 4, 0, 112, 16, 0,
0, 0, 0, 0, 85, 85,
0, 0, 100, 8, 0, 4,
18, 16, 16, 0, 1, 0,
0, 0, 4, 0, 0, 0,
98, 16, 0, 3, 50, 16,
16, 0, 2, 0, 0, 0,
101, 0, 0, 3, 242, 32,
16, 0, 0, 0, 0, 0,
104, 0, 0, 2, 1, 0,
0, 0, 105, 0, 0, 4,
0, 0, 0, 0, 6, 0,
0, 0, 4, 0, 0, 0,
86, 0, 0, 5, 66, 0,
16, 0, 0, 0, 0, 0,
10, 16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 0, 0, 0, 0, 0,
10, 48, 32, 4, 0, 0,
0, 0, 10, 0, 16, 0,
0, 0, 0, 0, 54, 0,
0, 6, 18, 0, 16, 0,
0, 0, 0, 0, 58, 128,
32, 0, 0, 0, 0, 0,
0, 0, 0, 0, 54, 0,
0, 7, 130, 32, 16, 0,
0, 0, 0, 0, 10, 48,
32, 4, 0, 0, 0, 0,
10, 0, 16, 0, 0, 0,
0, 0, 62, 0, 0, 1,
83, 84, 65, 84, 116, 0,
0, 0, 18, 0, 0, 0,
1, 0, 0, 0, 0, 0,
0, 0, 3, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
1, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
6, 0, 0, 0, 10, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 1, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
6, 0, 0, 0, 0, 0,
0, 0, 1, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0
};
#if 0
//
// Generated by Microsoft (R) HLSL Shader Compiler 9.30.9200.16384
//
//
///
// Buffer Definitions:
//
// cbuffer SwizzleProperties
// {
//
// uint4 SwizzleIndices; // Offset: 0 Size: 16
//
// }
//
//
// Resource Bindings:
//
// Name Type Format Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// Sampler sampler NA NA 0 1
// TextureF2D texture float4 2d 0 1
// SwizzleProperties cbuffer NA NA 0 1
//
//
//
// Input signature:
//
// Name Index Mask Register SysValue Format Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_POSITION 0 xyzw 0 POS float
// TEXCOORD 0 xy 1 NONE float xy
//
//
// Output signature:
//
// Name Index Mask Register SysValue Format Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_TARGET 0 xyzw 0 TARGET float xyzw
//
ps_4_0
dcl_constantbuffer cb0[1], immediateIndexed
dcl_sampler s0, mode_default
dcl_resource_texture2d (float,float,float,float) t0
dcl_input_ps linear v1.xy
dcl_output o0.xyzw
dcl_temps 1
dcl_indexableTemp x0[6], 4
sample r0.xyzw, v1.xyxx, t0.xyzw, s0
mov x0[0].x, r0.x
mov x0[1].x, r0.y
mov x0[2].x, r0.z
mov x0[3].x, r0.w
mov x0[4].x, l(0)
mov x0[5].x, l(1.000000)
mov r0.x, cb0[0].x
mov o0.x, x0[r0.x + 0].x
mov r0.x, cb0[0].y
mov o0.y, x0[r0.x + 0].x
mov r0.x, cb0[0].z
mov o0.z, x0[r0.x + 0].x
mov r0.x, cb0[0].w
mov o0.w, x0[r0.x + 0].x
ret
// Approximately 16 instruction slots used
#endif
const BYTE g_PS_SwizzleF2D[] =
{
68, 88, 66, 67, 162, 151,
82, 12, 22, 214, 143, 216,
57, 84, 12, 76, 109, 120,
162, 201, 1, 0, 0, 0,
96, 4, 0, 0, 5, 0,
0, 0, 52, 0, 0, 0,
100, 1, 0, 0, 188, 1,
0, 0, 240, 1, 0, 0,
228, 3, 0, 0, 82, 68,
69, 70, 40, 1, 0, 0,
1, 0, 0, 0, 164, 0,
0, 0, 3, 0, 0, 0,
28, 0, 0, 0, 0, 4,
255, 255, 0, 1, 0, 0,
244, 0, 0, 0, 124, 0,
0, 0, 3, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
132, 0, 0, 0, 2, 0,
0, 0, 5, 0, 0, 0,
4, 0, 0, 0, 255, 255,
255, 255, 0, 0, 0, 0,
1, 0, 0, 0, 13, 0,
0, 0, 143, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 83, 97,
109, 112, 108, 101, 114, 0,
84, 101, 120, 116, 117, 114,
101, 70, 50, 68, 0, 83,
119, 105, 122, 122, 108, 101,
80, 114, 111, 112, 101, 114,
116, 105, 101, 115, 0, 171,
171, 171, 143, 0, 0, 0,
1, 0, 0, 0, 188, 0,
0, 0, 16, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 212, 0, 0, 0,
0, 0, 0, 0, 16, 0,
0, 0, 2, 0, 0, 0,
228, 0, 0, 0, 0, 0,
0, 0, 83, 119, 105, 122,
122, 108, 101, 73, 110, 100,
105, 99, 101, 115, 0, 171,
1, 0, 19, 0, 1, 0,
4, 0, 0, 0, 0, 0,
0, 0, 0, 0, 77, 105,
99, 114, 111, 115, 111, 102,
116, 32, 40, 82, 41, 32,
72, 76, 83, 76, 32, 83,
104, 97, 100, 101, 114, 32,
67, 111, 109, 112, 105, 108,
101, 114, 32, 57, 46, 51,
48, 46, 57, 50, 48, 48,
46, 49, 54, 51, 56, 52,
0, 171, 73, 83, 71, 78,
80, 0, 0, 0, 2, 0,
0, 0, 8, 0, 0, 0,
56, 0, 0, 0, 0, 0,
0, 0, 1, 0, 0, 0,
3, 0, 0, 0, 0, 0,
0, 0, 15, 0, 0, 0,
68, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
3, 0, 0, 0, 1, 0,
0, 0, 3, 3, 0, 0,
83, 86, 95, 80, 79, 83,
73, 84, 73, 79, 78, 0,
84, 69, 88, 67, 79, 79,
82, 68, 0, 171, 171, 171,
79, 83, 71, 78, 44, 0,
0, 0, 1, 0, 0, 0,
8, 0, 0, 0, 32, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 3, 0,
0, 0, 0, 0, 0, 0,
15, 0, 0, 0, 83, 86,
95, 84, 65, 82, 71, 69,
84, 0, 171, 171, 83, 72,
68, 82, 236, 1, 0, 0,
64, 0, 0, 0, 123, 0,
0, 0, 89, 0, 0, 4,
70, 142, 32, 0, 0, 0,
0, 0, 1, 0, 0, 0,
90, 0, 0, 3, 0, 96,
16, 0, 0, 0, 0, 0,
88, 24, 0, 4, 0, 112,
16, 0, 0, 0, 0, 0,
85, 85, 0, 0, 98, 16,
0, 3, 50, 16, 16, 0,
1, 0, 0, 0, 101, 0,
0, 3, 242, 32, 16, 0,
0, 0, 0, 0, 104, 0,
0, 2, 1, 0, 0, 0,
105, 0, 0, 4, 0, 0,
0, 0, 6, 0, 0, 0,
4, 0, 0, 0, 69, 0,
0, 9, 242, 0, 16, 0,
0, 0, 0, 0, 70, 16,
16, 0, 1, 0, 0, 0,
70, 126, 16, 0, 0, 0,
0, 0, 0, 96, 16, 0,
0, 0, 0, 0, 54, 0,
0, 6, 18, 48, 32, 0,
0, 0, 0, 0, 0, 0,
0, 0, 10, 0, 16, 0,
0, 0, 0, 0, 54, 0,
0, 6, 18, 48, 32, 0,
0, 0, 0, 0, 1, 0,
0, 0, 26, 0, 16, 0,
0, 0, 0, 0, 54, 0,
0, 6, 18, 48, 32, 0,
0, 0, 0, 0, 2, 0,
0, 0, 42, 0, 16, 0,
0, 0, 0, 0, 54, 0,
0, 6, 18, 48, 32, 0,
0, 0, 0, 0, 3, 0,
0, 0, 58, 0, 16, 0,
0, 0, 0, 0, 54, 0,
0, 6, 18, 48, 32, 0,
0, 0, 0, 0, 4, 0,
0, 0, 1, 64, 0, 0,
0, 0, 0, 0, 54, 0,
0, 6, 18, 48, 32, 0,
0, 0, 0, 0, 5, 0,
0, 0, 1, 64, 0, 0,
0, 0, 128, 63, 54, 0,
0, 6, 18, 0, 16, 0,
0, 0, 0, 0, 10, 128,
32, 0, 0, 0, 0, 0,
0, 0, 0, 0, 54, 0,
0, 7, 18, 32, 16, 0,
0, 0, 0, 0, 10, 48,
32, 4, 0, 0, 0, 0,
10, 0, 16, 0, 0, 0,
0, 0, 54, 0, 0, 6,
18, 0, 16, 0, 0, 0,
0, 0, 26, 128, 32, 0,
0, 0, 0, 0, 0, 0,
0, 0, 54, 0, 0, 7,
34, 32, 16, 0, 0, 0,
0, 0, 10, 48, 32, 4,
0, 0, 0, 0, 10, 0,
16, 0, 0, 0, 0, 0,
54, 0, 0, 6, 18, 0,
16, 0, 0, 0, 0, 0,
42, 128, 32, 0, 0, 0,
0, 0, 0, 0, 0, 0,
54, 0, 0, 7, 66, 32,
16, 0, 0, 0, 0, 0,
10, 48, 32, 4, 0, 0,
0, 0, 10, 0, 16, 0,
0, 0, 0, 0, 54, 0,
0, 6, 18, 0, 16, 0,
0, 0, 0, 0, 58, 128,
32, 0, 0, 0, 0, 0,
0, 0, 0, 0, 54, 0,
0, 7, 130, 32, 16, 0,
0, 0, 0, 0, 10, 48,
32, 4, 0, 0, 0, 0,
10, 0, 16, 0, 0, 0,
0, 0, 62, 0, 0, 1,
83, 84, 65, 84, 116, 0,
0, 0, 16, 0, 0, 0,
1, 0, 0, 0, 0, 0,
0, 0, 2, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
1, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
6, 0, 0, 0, 10, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 1, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
5, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0
};
#if 0
//
// Generated by Microsoft (R) HLSL Shader Compiler 9.30.9200.16384
//
//
///
// Buffer Definitions:
//
// cbuffer SwizzleProperties
// {
//
// uint4 SwizzleIndices; // Offset: 0 Size: 16
//
// }
//
//
// Resource Bindings:
//
// Name Type Format Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// Sampler sampler NA NA 0 1
// TextureF3D texture float4 3d 0 1
// SwizzleProperties cbuffer NA NA 0 1
//
//
//
// Input signature:
//
// Name Index Mask Register SysValue Format Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_POSITION 0 xyzw 0 POS float
// SV_RENDERTARGETARRAYINDEX 0 x 1 RTINDEX uint
// TEXCOORD 0 xyz 2 NONE float xyz
//
//
// Output signature:
//
// Name Index Mask Register SysValue Format Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_TARGET 0 xyzw 0 TARGET float xyzw
//
ps_4_0
dcl_constantbuffer cb0[1], immediateIndexed
dcl_sampler s0, mode_default
dcl_resource_texture3d (float,float,float,float) t0
dcl_input_ps linear v2.xyz
dcl_output o0.xyzw
dcl_temps 1
dcl_indexableTemp x0[6], 4
sample r0.xyzw, v2.xyzx, t0.xyzw, s0
mov x0[0].x, r0.x
mov x0[1].x, r0.y
mov x0[2].x, r0.z
mov x0[3].x, r0.w
mov x0[4].x, l(0)
mov x0[5].x, l(1.000000)
mov r0.x, cb0[0].x
mov o0.x, x0[r0.x + 0].x
mov r0.x, cb0[0].y
mov o0.y, x0[r0.x + 0].x
mov r0.x, cb0[0].z
mov o0.z, x0[r0.x + 0].x
mov r0.x, cb0[0].w
mov o0.w, x0[r0.x + 0].x
ret
// Approximately 16 instruction slots used
#endif
const BYTE g_PS_SwizzleF3D[] =
{
68, 88, 66, 67, 112, 23,
39, 219, 141, 10, 170, 22,
165, 204, 123, 149, 248, 84,
184, 117, 1, 0, 0, 0,
144, 4, 0, 0, 5, 0,
0, 0, 52, 0, 0, 0,
100, 1, 0, 0, 236, 1,
0, 0, 32, 2, 0, 0,
20, 4, 0, 0, 82, 68,
69, 70, 40, 1, 0, 0,
1, 0, 0, 0, 164, 0,
0, 0, 3, 0, 0, 0,
28, 0, 0, 0, 0, 4,
255, 255, 0, 1, 0, 0,
244, 0, 0, 0, 124, 0,
0, 0, 3, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
132, 0, 0, 0, 2, 0,
0, 0, 5, 0, 0, 0,
8, 0, 0, 0, 255, 255,
255, 255, 0, 0, 0, 0,
1, 0, 0, 0, 13, 0,
0, 0, 143, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 83, 97,
109, 112, 108, 101, 114, 0,
84, 101, 120, 116, 117, 114,
101, 70, 51, 68, 0, 83,
119, 105, 122, 122, 108, 101,
80, 114, 111, 112, 101, 114,
116, 105, 101, 115, 0, 171,
171, 171, 143, 0, 0, 0,
1, 0, 0, 0, 188, 0,
0, 0, 16, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 212, 0, 0, 0,
0, 0, 0, 0, 16, 0,
0, 0, 2, 0, 0, 0,
228, 0, 0, 0, 0, 0,
0, 0, 83, 119, 105, 122,
122, 108, 101, 73, 110, 100,
105, 99, 101, 115, 0, 171,
1, 0, 19, 0, 1, 0,
4, 0, 0, 0, 0, 0,
0, 0, 0, 0, 77, 105,
99, 114, 111, 115, 111, 102,
116, 32, 40, 82, 41, 32,
72, 76, 83, 76, 32, 83,
104, 97, 100, 101, 114, 32,
67, 111, 109, 112, 105, 108,
101, 114, 32, 57, 46, 51,
48, 46, 57, 50, 48, 48,
46, 49, 54, 51, 56, 52,
0, 171, 73, 83, 71, 78,
128, 0, 0, 0, 3, 0,
0, 0, 8, 0, 0, 0,
80, 0, 0, 0, 0, 0,
0, 0, 1, 0, 0, 0,
3, 0, 0, 0, 0, 0,
0, 0, 15, 0, 0, 0,
92, 0, 0, 0, 0, 0,
0, 0, 4, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
118, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
3, 0, 0, 0, 2, 0,
0, 0, 7, 7, 0, 0,
83, 86, 95, 80, 79, 83,
73, 84, 73, 79, 78, 0,
83, 86, 95, 82, 69, 78,
68, 69, 82, 84, 65, 82,
71, 69, 84, 65, 82, 82,
65, 89, 73, 78, 68, 69,
88, 0, 84, 69, 88, 67,
79, 79, 82, 68, 0, 171,
79, 83, 71, 78, 44, 0,
0, 0, 1, 0, 0, 0,
8, 0, 0, 0, 32, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 3, 0,
0, 0, 0, 0, 0, 0,
15, 0, 0, 0, 83, 86,
95, 84, 65, 82, 71, 69,
84, 0, 171, 171, 83, 72,
68, 82, 236, 1, 0, 0,
64, 0, 0, 0, 123, 0,
0, 0, 89, 0, 0, 4,
70, 142, 32, 0, 0, 0,
0, 0, 1, 0, 0, 0,
90, 0, 0, 3, 0, 96,
16, 0, 0, 0, 0, 0,
88, 40, 0, 4, 0, 112,
16, 0, 0, 0, 0, 0,
85, 85, 0, 0, 98, 16,
0, 3, 114, 16, 16, 0,
2, 0, 0, 0, 101, 0,
0, 3, 242, 32, 16, 0,
0, 0, 0, 0, 104, 0,
0, 2, 1, 0, 0, 0,
105, 0, 0, 4, 0, 0,
0, 0, 6, 0, 0, 0,
4, 0, 0, 0, 69, 0,
0, 9, 242, 0, 16, 0,
0, 0, 0, 0, 70, 18,
16, 0, 2, 0, 0, 0,
70, 126, 16, 0, 0, 0,
0, 0, 0, 96, 16, 0,
0, 0, 0, 0, 54, 0,
0, 6, 18, 48, 32, 0,
0, 0, 0, 0, 0, 0,
0, 0, 10, 0, 16, 0,
0, 0, 0, 0, 54, 0,
0, 6, 18, 48, 32, 0,
0, 0, 0, 0, 1, 0,
0, 0, 26, 0, 16, 0,
0, 0, 0, 0, 54, 0,
0, 6, 18, 48, 32, 0,
0, 0, 0, 0, 2, 0,
0, 0, 42, 0, 16, 0,
0, 0, 0, 0, 54, 0,
0, 6, 18, 48, 32, 0,
0, 0, 0, 0, 3, 0,
0, 0, 58, 0, 16, 0,
0, 0, 0, 0, 54, 0,
0, 6, 18, 48, 32, 0,
0, 0, 0, 0, 4, 0,
0, 0, 1, 64, 0, 0,
0, 0, 0, 0, 54, 0,
0, 6, 18, 48, 32, 0,
0, 0, 0, 0, 5, 0,
0, 0, 1, 64, 0, 0,
0, 0, 128, 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Microsoft (R) HLSL Shader Compiler 9.30.9200.16384
//
//
///
// Buffer Definitions:
//
// cbuffer SwizzleProperties
// {
//
// uint4 SwizzleIndices; // Offset: 0 Size: 16
//
// }
//
//
// Resource Bindings:
//
// Name Type Format Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// TextureI2DArray texture sint4 2darray 0 1
// SwizzleProperties cbuffer NA NA 0 1
//
//
//
// Input signature:
//
// Name Index Mask Register SysValue Format Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_POSITION 0 xyzw 0 POS float
// SV_RENDERTARGETARRAYINDEX 0 x 1 RTINDEX uint x
// TEXCOORD 0 xyz 2 NONE float xy
//
//
// Output signature:
//
// Name Index Mask Register SysValue Format Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_TARGET 0 xyzw 0 TARGET int xyzw
//
ps_4_0
dcl_constantbuffer cb0[1], immediateIndexed
dcl_resource_texture2darray (sint,sint,sint,sint) t0
dcl_input_ps_siv constant v1.x, rendertarget_array_index
dcl_input_ps linear v2.xy
dcl_output o0.xyzw
dcl_temps 1
dcl_indexableTemp x0[6], 4
resinfo_uint r0.xyzw, l(0), t0.xyzw
utof r0.xy, r0.xyxx
mul r0.xy, r0.xyxx, v2.xyxx
ftoi r0.xy, r0.xyxx
mov r0.z, v1.x
mov r0.w, l(0)
ld r0.xyzw, r0.xyzw, t0.xyzw
mov x0[0].x, r0.x
mov x0[1].x, r0.y
mov x0[2].x, r0.z
mov x0[3].x, r0.w
mov x0[4].x, l(0)
mov x0[5].x, l(1)
mov r0.x, cb0[0].x
mov o0.x, x0[r0.x + 0].x
mov r0.x, cb0[0].y
mov o0.y, x0[r0.x + 0].x
mov r0.x, cb0[0].z
mov o0.z, x0[r0.x + 0].x
mov r0.x, cb0[0].w
mov o0.w, x0[r0.x + 0].x
ret
// Approximately 22 instruction slots used
#endif
const BYTE g_PS_SwizzleI2DArray[] =
{
68, 88, 66, 67, 75, 76,
4, 200, 179, 192, 148, 142,
191, 41, 209, 141, 122, 203,
184, 74, 1, 0, 0, 0,
240, 4, 0, 0, 5, 0,
0, 0, 52, 0, 0, 0,
64, 1, 0, 0, 200, 1,
0, 0, 252, 1, 0, 0,
116, 4, 0, 0, 82, 68,
69, 70, 4, 1, 0, 0,
1, 0, 0, 0, 128, 0,
0, 0, 2, 0, 0, 0,
28, 0, 0, 0, 0, 4,
255, 255, 0, 1, 0, 0,
208, 0, 0, 0, 92, 0,
0, 0, 2, 0, 0, 0,
3, 0, 0, 0, 5, 0,
0, 0, 255, 255, 255, 255,
0, 0, 0, 0, 1, 0,
0, 0, 13, 0, 0, 0,
108, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 84, 101, 120, 116,
117, 114, 101, 73, 50, 68,
65, 114, 114, 97, 121, 0,
83, 119, 105, 122, 122, 108,
101, 80, 114, 111, 112, 101,
114, 116, 105, 101, 115, 0,
171, 171, 108, 0, 0, 0,
1, 0, 0, 0, 152, 0,
0, 0, 16, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 176, 0, 0, 0,
0, 0, 0, 0, 16, 0,
0, 0, 2, 0, 0, 0,
192, 0, 0, 0, 0, 0,
0, 0, 83, 119, 105, 122,
122, 108, 101, 73, 110, 100,
105, 99, 101, 115, 0, 171,
1, 0, 19, 0, 1, 0,
4, 0, 0, 0, 0, 0,
0, 0, 0, 0, 77, 105,
99, 114, 111, 115, 111, 102,
116, 32, 40, 82, 41, 32,
72, 76, 83, 76, 32, 83,
104, 97, 100, 101, 114, 32,
67, 111, 109, 112, 105, 108,
101, 114, 32, 57, 46, 51,
48, 46, 57, 50, 48, 48,
46, 49, 54, 51, 56, 52,
0, 171, 73, 83, 71, 78,
128, 0, 0, 0, 3, 0,
0, 0, 8, 0, 0, 0,
80, 0, 0, 0, 0, 0,
0, 0, 1, 0, 0, 0,
3, 0, 0, 0, 0, 0,
0, 0, 15, 0, 0, 0,
92, 0, 0, 0, 0, 0,
0, 0, 4, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 1, 1, 0, 0,
118, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
3, 0, 0, 0, 2, 0,
0, 0, 7, 3, 0, 0,
83, 86, 95, 80, 79, 83,
73, 84, 73, 79, 78, 0,
83, 86, 95, 82, 69, 78,
68, 69, 82, 84, 65, 82,
71, 69, 84, 65, 82, 82,
65, 89, 73, 78, 68, 69,
88, 0, 84, 69, 88, 67,
79, 79, 82, 68, 0, 171,
79, 83, 71, 78, 44, 0,
0, 0, 1, 0, 0, 0,
8, 0, 0, 0, 32, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 2, 0,
0, 0, 0, 0, 0, 0,
15, 0, 0, 0, 83, 86,
95, 84, 65, 82, 71, 69,
84, 0, 171, 171, 83, 72,
68, 82, 112, 2, 0, 0,
64, 0, 0, 0, 156, 0,
0, 0, 89, 0, 0, 4,
70, 142, 32, 0, 0, 0,
0, 0, 1, 0, 0, 0,
88, 64, 0, 4, 0, 112,
16, 0, 0, 0, 0, 0,
51, 51, 0, 0, 100, 8,
0, 4, 18, 16, 16, 0,
1, 0, 0, 0, 4, 0,
0, 0, 98, 16, 0, 3,
50, 16, 16, 0, 2, 0,
0, 0, 101, 0, 0, 3,
242, 32, 16, 0, 0, 0,
0, 0, 104, 0, 0, 2,
1, 0, 0, 0, 105, 0,
0, 4, 0, 0, 0, 0,
6, 0, 0, 0, 4, 0,
0, 0, 61, 16, 0, 7,
242, 0, 16, 0, 0, 0,
0, 0, 1, 64, 0, 0,
0, 0, 0, 0, 70, 126,
16, 0, 0, 0, 0, 0,
86, 0, 0, 5, 50, 0,
16, 0, 0, 0, 0, 0,
70, 0, 16, 0, 0, 0,
0, 0, 56, 0, 0, 7,
50, 0, 16, 0, 0, 0,
0, 0, 70, 0, 16, 0,
0, 0, 0, 0, 70, 16,
16, 0, 2, 0, 0, 0,
27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
16, 0, 0, 0, 0, 0,
42, 128, 32, 0, 0, 0,
0, 0, 0, 0, 0, 0,
54, 0, 0, 7, 66, 32,
16, 0, 0, 0, 0, 0,
10, 48, 32, 4, 0, 0,
0, 0, 10, 0, 16, 0,
0, 0, 0, 0, 54, 0,
0, 6, 18, 0, 16, 0,
0, 0, 0, 0, 58, 128,
32, 0, 0, 0, 0, 0,
0, 0, 0, 0, 54, 0,
0, 7, 130, 32, 16, 0,
0, 0, 0, 0, 10, 48,
32, 4, 0, 0, 0, 0,
10, 0, 16, 0, 0, 0,
0, 0, 62, 0, 0, 1,
83, 84, 65, 84, 116, 0,
0, 0, 22, 0, 0, 0,
1, 0, 0, 0, 0, 0,
0, 0, 3, 0, 0, 0,
1, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
1, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
6, 0, 0, 0, 10, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 1, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
7, 0, 0, 0, 0, 0,
0, 0, 2, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0
};
#if 0
//
// Generated by Microsoft (R) HLSL Shader Compiler 9.30.9200.16384
//
//
///
// Buffer Definitions:
//
// cbuffer SwizzleProperties
// {
//
// uint4 SwizzleIndices; // Offset: 0 Size: 16
//
// }
//
//
// Resource Bindings:
//
// Name Type Format Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// TextureI2D texture sint4 2d 0 1
// SwizzleProperties cbuffer NA NA 0 1
//
//
//
// Input signature:
//
// Name Index Mask Register SysValue Format Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_POSITION 0 xyzw 0 POS float
// TEXCOORD 0 xy 1 NONE float xy
//
//
// Output signature:
//
// Name Index Mask Register SysValue Format Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_TARGET 0 xyzw 0 TARGET int xyzw
//
ps_4_0
dcl_constantbuffer cb0[1], immediateIndexed
dcl_resource_texture2d (sint,sint,sint,sint) t0
dcl_input_ps linear v1.xy
dcl_output o0.xyzw
dcl_temps 1
dcl_indexableTemp x0[6], 4
resinfo_uint r0.xyzw, l(0), t0.xyzw
utof r0.xy, r0.xyxx
mul r0.xy, r0.xyxx, v1.xyxx
ftoi r0.xy, r0.xyxx
mov r0.zw, l(0,0,0,0)
ld r0.xyzw, r0.xyzw, t0.xyzw
mov x0[0].x, r0.x
mov x0[1].x, r0.y
mov x0[2].x, r0.z
mov x0[3].x, r0.w
mov x0[4].x, l(0)
mov x0[5].x, l(1)
mov r0.x, cb0[0].x
mov o0.x, x0[r0.x + 0].x
mov r0.x, cb0[0].y
mov o0.y, x0[r0.x + 0].x
mov r0.x, cb0[0].z
mov o0.z, x0[r0.x + 0].x
mov r0.x, cb0[0].w
mov o0.w, x0[r0.x + 0].x
ret
// Approximately 21 instruction slots used
#endif
const BYTE g_PS_SwizzleI2D[] =
{
68, 88, 66, 67, 137, 89,
210, 142, 141, 7, 14, 194,
111, 71, 23, 167, 232, 166,
154, 59, 1, 0, 0, 0,
164, 4, 0, 0, 5, 0,
0, 0, 52, 0, 0, 0,
60, 1, 0, 0, 148, 1,
0, 0, 200, 1, 0, 0,
40, 4, 0, 0, 82, 68,
69, 70, 0, 1, 0, 0,
1, 0, 0, 0, 124, 0,
0, 0, 2, 0, 0, 0,
28, 0, 0, 0, 0, 4,
255, 255, 0, 1, 0, 0,
204, 0, 0, 0, 92, 0,
0, 0, 2, 0, 0, 0,
3, 0, 0, 0, 4, 0,
0, 0, 255, 255, 255, 255,
0, 0, 0, 0, 1, 0,
0, 0, 13, 0, 0, 0,
103, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 84, 101, 120, 116,
117, 114, 101, 73, 50, 68,
0, 83, 119, 105, 122, 122,
108, 101, 80, 114, 111, 112,
101, 114, 116, 105, 101, 115,
0, 171, 171, 171, 103, 0,
0, 0, 1, 0, 0, 0,
148, 0, 0, 0, 16, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 172, 0,
0, 0, 0, 0, 0, 0,
16, 0, 0, 0, 2, 0,
0, 0, 188, 0, 0, 0,
0, 0, 0, 0, 83, 119,
105, 122, 122, 108, 101, 73,
110, 100, 105, 99, 101, 115,
0, 171, 1, 0, 19, 0,
1, 0, 4, 0, 0, 0,
0, 0, 0, 0, 0, 0,
77, 105, 99, 114, 111, 115,
111, 102, 116, 32, 40, 82,
41, 32, 72, 76, 83, 76,
32, 83, 104, 97, 100, 101,
114, 32, 67, 111, 109, 112,
105, 108, 101, 114, 32, 57,
46, 51, 48, 46, 57, 50,
48, 48, 46, 49, 54, 51,
56, 52, 0, 171, 73, 83,
71, 78, 80, 0, 0, 0,
2, 0, 0, 0, 8, 0,
0, 0, 56, 0, 0, 0,
0, 0, 0, 0, 1, 0,
0, 0, 3, 0, 0, 0,
0, 0, 0, 0, 15, 0,
0, 0, 68, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 3, 0, 0, 0,
1, 0, 0, 0, 3, 3,
0, 0, 83, 86, 95, 80,
79, 83, 73, 84, 73, 79,
78, 0, 84, 69, 88, 67,
79, 79, 82, 68, 0, 171,
171, 171, 79, 83, 71, 78,
44, 0, 0, 0, 1, 0,
0, 0, 8, 0, 0, 0,
32, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
2, 0, 0, 0, 0, 0,
0, 0, 15, 0, 0, 0,
83, 86, 95, 84, 65, 82,
71, 69, 84, 0, 171, 171,
83, 72, 68, 82, 88, 2,
0, 0, 64, 0, 0, 0,
150, 0, 0, 0, 89, 0,
0, 4, 70, 142, 32, 0,
0, 0, 0, 0, 1, 0,
0, 0, 88, 24, 0, 4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0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0
};
#if 0
//
// Generated by Microsoft (R) HLSL Shader Compiler 9.30.9200.16384
//
//
///
// Buffer Definitions:
//
// cbuffer SwizzleProperties
// {
//
// uint4 SwizzleIndices; // Offset: 0 Size: 16
//
// }
//
//
// Resource Bindings:
//
// Name Type Format Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// TextureI3D texture sint4 3d 0 1
// SwizzleProperties cbuffer NA NA 0 1
//
//
//
// Input signature:
//
// Name Index Mask Register SysValue Format Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_POSITION 0 xyzw 0 POS float
// SV_RENDERTARGETARRAYINDEX 0 x 1 RTINDEX uint
// TEXCOORD 0 xyz 2 NONE float xyz
//
//
// Output signature:
//
// Name Index Mask Register SysValue Format Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_TARGET 0 xyzw 0 TARGET int xyzw
//
ps_4_0
dcl_constantbuffer cb0[1], immediateIndexed
dcl_resource_texture3d (sint,sint,sint,sint) t0
dcl_input_ps linear v2.xyz
dcl_output o0.xyzw
dcl_temps 1
dcl_indexableTemp x0[6], 4
resinfo_uint r0.xyzw, l(0), t0.xyzw
utof r0.xyz, r0.xyzx
mul r0.xyz, r0.xyzx, v2.xyzx
ftoi r0.xyz, r0.xyzx
mov r0.w, l(0)
ld r0.xyzw, r0.xyzw, t0.xyzw
mov x0[0].x, r0.x
mov x0[1].x, r0.y
mov x0[2].x, r0.z
mov x0[3].x, r0.w
mov x0[4].x, l(0)
mov x0[5].x, l(1)
mov r0.x, cb0[0].x
mov o0.x, x0[r0.x + 0].x
mov r0.x, cb0[0].y
mov o0.y, x0[r0.x + 0].x
mov r0.x, cb0[0].z
mov o0.z, x0[r0.x + 0].x
mov r0.x, cb0[0].w
mov o0.w, x0[r0.x + 0].x
ret
// Approximately 21 instruction slots used
#endif
const BYTE g_PS_SwizzleI3D[] =
{
68, 88, 66, 67, 101, 41,
194, 229, 103, 175, 204, 102,
192, 43, 200, 161, 117, 114,
19, 252, 1, 0, 0, 0,
200, 4, 0, 0, 5, 0,
0, 0, 52, 0, 0, 0,
60, 1, 0, 0, 196, 1,
0, 0, 248, 1, 0, 0,
76, 4, 0, 0, 82, 68,
69, 70, 0, 1, 0, 0,
1, 0, 0, 0, 124, 0,
0, 0, 2, 0, 0, 0,
28, 0, 0, 0, 0, 4,
255, 255, 0, 1, 0, 0,
204, 0, 0, 0, 92, 0,
0, 0, 2, 0, 0, 0,
3, 0, 0, 0, 8, 0,
0, 0, 255, 255, 255, 255,
0, 0, 0, 0, 1, 0,
0, 0, 13, 0, 0, 0,
103, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 84, 101, 120, 116,
117, 114, 101, 73, 51, 68,
0, 83, 119, 105, 122, 122,
108, 101, 80, 114, 111, 112,
101, 114, 116, 105, 101, 115,
0, 171, 171, 171, 103, 0,
0, 0, 1, 0, 0, 0,
148, 0, 0, 0, 16, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 172, 0,
0, 0, 0, 0, 0, 0,
16, 0, 0, 0, 2, 0,
0, 0, 188, 0, 0, 0,
0, 0, 0, 0, 83, 119,
105, 122, 122, 108, 101, 73,
110, 100, 105, 99, 101, 115,
0, 171, 1, 0, 19, 0,
1, 0, 4, 0, 0, 0,
0, 0, 0, 0, 0, 0,
77, 105, 99, 114, 111, 115,
111, 102, 116, 32, 40, 82,
41, 32, 72, 76, 83, 76,
32, 83, 104, 97, 100, 101,
114, 32, 67, 111, 109, 112,
105, 108, 101, 114, 32, 57,
46, 51, 48, 46, 57, 50,
48, 48, 46, 49, 54, 51,
56, 52, 0, 171, 73, 83,
71, 78, 128, 0, 0, 0,
3, 0, 0, 0, 8, 0,
0, 0, 80, 0, 0, 0,
0, 0, 0, 0, 1, 0,
0, 0, 3, 0, 0, 0,
0, 0, 0, 0, 15, 0,
0, 0, 92, 0, 0, 0,
0, 0, 0, 0, 4, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 118, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 3, 0, 0, 0,
2, 0, 0, 0, 7, 7,
0, 0, 83, 86, 95, 80,
79, 83, 73, 84, 73, 79,
78, 0, 83, 86, 95, 82,
69, 78, 68, 69, 82, 84,
65, 82, 71, 69, 84, 65,
82, 82, 65, 89, 73, 78,
68, 69, 88, 0, 84, 69,
88, 67, 79, 79, 82, 68,
0, 171, 79, 83, 71, 78,
44, 0, 0, 0, 1, 0,
0, 0, 8, 0, 0, 0,
32, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
2, 0, 0, 0, 0, 0,
0, 0, 15, 0, 0, 0,
83, 86, 95, 84, 65, 82,
71, 69, 84, 0, 171, 171,
83, 72, 68, 82, 76, 2,
0, 0, 64, 0, 0, 0,
147, 0, 0, 0, 89, 0,
0, 4, 70, 142, 32, 0,
0, 0, 0, 0, 1, 0,
0, 0, 88, 40, 0, 4,
0, 112, 16, 0, 0, 0,
0, 0, 51, 51, 0, 0,
98, 16, 0, 3, 114, 16,
16, 0, 2, 0, 0, 0,
101, 0, 0, 3, 242, 32,
16, 0, 0, 0, 0, 0,
104, 0, 0, 2, 1, 0,
0, 0, 105, 0, 0, 4,
0, 0, 0, 0, 6, 0,
0, 0, 4, 0, 0, 0,
61, 16, 0, 7, 242, 0,
16, 0, 0, 0, 0, 0,
1, 64, 0, 0, 0, 0,
0, 0, 70, 126, 16, 0,
0, 0, 0, 0, 86, 0,
0, 5, 114, 0, 16, 0,
0, 0, 0, 0, 70, 2,
16, 0, 0, 0, 0, 0,
56, 0, 0, 7, 114, 0,
16, 0, 0, 0, 0, 0,
70, 2, 16, 0, 0, 0,
0, 0, 70, 18, 16, 0,
2, 0, 0, 0, 27, 0,
0, 5, 114, 0, 16, 0,
0, 0, 0, 0, 70, 2,
16, 0, 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, 0, 0, 10, 0,
16, 0, 0, 0, 0, 0,
54, 0, 0, 6, 18, 0,
16, 0, 0, 0, 0, 0,
58, 128, 32, 0, 0, 0,
0, 0, 0, 0, 0, 0,
54, 0, 0, 7, 130, 32,
16, 0, 0, 0, 0, 0,
10, 48, 32, 4, 0, 0,
0, 0, 10, 0, 16, 0,
0, 0, 0, 0, 62, 0,
0, 1, 83, 84, 65, 84,
116, 0, 0, 0, 21, 0,
0, 0, 1, 0, 0, 0,
0, 0, 0, 0, 2, 0,
0, 0, 1, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 1, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 6, 0, 0, 0,
10, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 1, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 6, 0, 0, 0,
0, 0, 0, 0, 2, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0
};
#if 0
//
// Generated by Microsoft (R) HLSL Shader Compiler 9.30.9200.16384
//
//
///
// Buffer Definitions:
//
// cbuffer SwizzleProperties
// {
//
// uint4 SwizzleIndices; // Offset: 0 Size: 16
//
// }
//
//
// Resource Bindings:
//
// Name Type Format Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// TextureUI2DArray texture uint4 2darray 0 1
// SwizzleProperties cbuffer NA NA 0 1
//
//
//
// Input signature:
//
// Name Index Mask Register SysValue Format Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_POSITION 0 xyzw 0 POS float
// SV_RENDERTARGETARRAYINDEX 0 x 1 RTINDEX uint x
// TEXCOORD 0 xyz 2 NONE float xy
//
//
// Output signature:
//
// Name Index Mask Register SysValue Format Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_TARGET 0 xyzw 0 TARGET uint xyzw
//
ps_4_0
dcl_constantbuffer cb0[1], immediateIndexed
dcl_resource_texture2darray (uint,uint,uint,uint) t0
dcl_input_ps_siv constant v1.x, rendertarget_array_index
dcl_input_ps linear v2.xy
dcl_output o0.xyzw
dcl_temps 1
dcl_indexableTemp x0[6], 4
resinfo_uint r0.xyzw, l(0), t0.xyzw
utof r0.xy, r0.xyxx
mul r0.xy, r0.xyxx, v2.xyxx
ftoi r0.xy, r0.xyxx
mov r0.z, v1.x
mov r0.w, l(0)
ld r0.xyzw, r0.xyzw, t0.xyzw
mov x0[0].x, r0.x
mov x0[1].x, r0.y
mov x0[2].x, r0.z
mov x0[3].x, r0.w
mov x0[4].x, l(0)
mov x0[5].x, l(1)
mov r0.x, cb0[0].x
mov o0.x, x0[r0.x + 0].x
mov r0.x, cb0[0].y
mov o0.y, x0[r0.x + 0].x
mov r0.x, cb0[0].z
mov o0.z, x0[r0.x + 0].x
mov r0.x, cb0[0].w
mov o0.w, x0[r0.x + 0].x
ret
// Approximately 22 instruction slots used
#endif
const BYTE g_PS_SwizzleUI2DArray[] =
{
68, 88, 66, 67, 239, 117,
221, 64, 238, 147, 130, 15,
39, 48, 171, 143, 66, 71,
242, 70, 1, 0, 0, 0,
240, 4, 0, 0, 5, 0,
0, 0, 52, 0, 0, 0,
64, 1, 0, 0, 200, 1,
0, 0, 252, 1, 0, 0,
116, 4, 0, 0, 82, 68,
69, 70, 4, 1, 0, 0,
1, 0, 0, 0, 128, 0,
0, 0, 2, 0, 0, 0,
28, 0, 0, 0, 0, 4,
255, 255, 0, 1, 0, 0,
208, 0, 0, 0, 92, 0,
0, 0, 2, 0, 0, 0,
4, 0, 0, 0, 5, 0,
0, 0, 255, 255, 255, 255,
0, 0, 0, 0, 1, 0,
0, 0, 13, 0, 0, 0,
109, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 84, 101, 120, 116,
117, 114, 101, 85, 73, 50,
68, 65, 114, 114, 97, 121,
0, 83, 119, 105, 122, 122,
108, 101, 80, 114, 111, 112,
101, 114, 116, 105, 101, 115,
0, 171, 109, 0, 0, 0,
1, 0, 0, 0, 152, 0,
0, 0, 16, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 176, 0, 0, 0,
0, 0, 0, 0, 16, 0,
0, 0, 2, 0, 0, 0,
192, 0, 0, 0, 0, 0,
0, 0, 83, 119, 105, 122,
122, 108, 101, 73, 110, 100,
105, 99, 101, 115, 0, 171,
1, 0, 19, 0, 1, 0,
4, 0, 0, 0, 0, 0,
0, 0, 0, 0, 77, 105,
99, 114, 111, 115, 111, 102,
116, 32, 40, 82, 41, 32,
72, 76, 83, 76, 32, 83,
104, 97, 100, 101, 114, 32,
67, 111, 109, 112, 105, 108,
101, 114, 32, 57, 46, 51,
48, 46, 57, 50, 48, 48,
46, 49, 54, 51, 56, 52,
0, 171, 73, 83, 71, 78,
128, 0, 0, 0, 3, 0,
0, 0, 8, 0, 0, 0,
80, 0, 0, 0, 0, 0,
0, 0, 1, 0, 0, 0,
3, 0, 0, 0, 0, 0,
0, 0, 15, 0, 0, 0,
92, 0, 0, 0, 0, 0,
0, 0, 4, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 1, 1, 0, 0,
118, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
3, 0, 0, 0, 2, 0,
0, 0, 7, 3, 0, 0,
83, 86, 95, 80, 79, 83,
73, 84, 73, 79, 78, 0,
83, 86, 95, 82, 69, 78,
68, 69, 82, 84, 65, 82,
71, 69, 84, 65, 82, 82,
65, 89, 73, 78, 68, 69,
88, 0, 84, 69, 88, 67,
79, 79, 82, 68, 0, 171,
79, 83, 71, 78, 44, 0,
0, 0, 1, 0, 0, 0,
8, 0, 0, 0, 32, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 1, 0,
0, 0, 0, 0, 0, 0,
15, 0, 0, 0, 83, 86,
95, 84, 65, 82, 71, 69,
84, 0, 171, 171, 83, 72,
68, 82, 112, 2, 0, 0,
64, 0, 0, 0, 156, 0,
0, 0, 89, 0, 0, 4,
70, 142, 32, 0, 0, 0,
0, 0, 1, 0, 0, 0,
88, 64, 0, 4, 0, 112,
16, 0, 0, 0, 0, 0,
68, 68, 0, 0, 100, 8,
0, 4, 18, 16, 16, 0,
1, 0, 0, 0, 4, 0,
0, 0, 98, 16, 0, 3,
50, 16, 16, 0, 2, 0,
0, 0, 101, 0, 0, 3,
242, 32, 16, 0, 0, 0,
0, 0, 104, 0, 0, 2,
1, 0, 0, 0, 105, 0,
0, 4, 0, 0, 0, 0,
6, 0, 0, 0, 4, 0,
0, 0, 61, 16, 0, 7,
242, 0, 16, 0, 0, 0,
0, 0, 1, 64, 0, 0,
0, 0, 0, 0, 70, 126,
16, 0, 0, 0, 0, 0,
86, 0, 0, 5, 50, 0,
16, 0, 0, 0, 0, 0,
70, 0, 16, 0, 0, 0,
0, 0, 56, 0, 0, 7,
50, 0, 16, 0, 0, 0,
0, 0, 70, 0, 16, 0,
0, 0, 0, 0, 70, 16,
16, 0, 2, 0, 0, 0,
27, 0, 0, 5, 50, 0,
16, 0, 0, 0, 0, 0,
70, 0, 16, 0, 0, 0,
0, 0, 54, 0, 0, 5,
66, 0, 16, 0, 0, 0,
0, 0, 10, 16, 16, 0,
1, 0, 0, 0, 54, 0,
0, 5, 130, 0, 16, 0,
0, 0, 0, 0, 1, 64,
0, 0, 0, 0, 0, 0,
45, 0, 0, 7, 242, 0,
16, 0, 0, 0, 0, 0,
70, 14, 16, 0, 0, 0,
0, 0, 70, 126, 16, 0,
0, 0, 0, 0, 54, 0,
0, 6, 18, 48, 32, 0,
0, 0, 0, 0, 0, 0,
0, 0, 10, 0, 16, 0,
0, 0, 0, 0, 54, 0,
0, 6, 18, 48, 32, 0,
0, 0, 0, 0, 1, 0,
0, 0, 26, 0, 16, 0,
0, 0, 0, 0, 54, 0,
0, 6, 18, 48, 32, 0,
0, 0,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0, 0, 0, 0, 0,
6, 0, 0, 0, 10, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 1, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
7, 0, 0, 0, 0, 0,
0, 0, 2, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0
};
#if 0
//
// Generated by Microsoft (R) HLSL Shader Compiler 9.30.9200.16384
//
//
///
// Buffer Definitions:
//
// cbuffer SwizzleProperties
// {
//
// uint4 SwizzleIndices; // Offset: 0 Size: 16
//
// }
//
//
// Resource Bindings:
//
// Name Type Format Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// TextureUI2D texture uint4 2d 0 1
// SwizzleProperties cbuffer NA NA 0 1
//
//
//
// Input signature:
//
// Name Index Mask Register SysValue Format Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_POSITION 0 xyzw 0 POS float
// TEXCOORD 0 xy 1 NONE float xy
//
//
// Output signature:
//
// Name Index Mask Register SysValue Format Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_TARGET 0 xyzw 0 TARGET uint xyzw
//
ps_4_0
dcl_constantbuffer cb0[1], immediateIndexed
dcl_resource_texture2d (uint,uint,uint,uint) t0
dcl_input_ps linear v1.xy
dcl_output o0.xyzw
dcl_temps 1
dcl_indexableTemp x0[6], 4
resinfo_uint r0.xyzw, l(0), t0.xyzw
utof r0.xy, r0.xyxx
mul r0.xy, r0.xyxx, v1.xyxx
ftoi r0.xy, r0.xyxx
mov r0.zw, l(0,0,0,0)
ld r0.xyzw, r0.xyzw, t0.xyzw
mov x0[0].x, r0.x
mov x0[1].x, r0.y
mov x0[2].x, r0.z
mov x0[3].x, r0.w
mov x0[4].x, l(0)
mov x0[5].x, l(1)
mov r0.x, cb0[0].x
mov o0.x, x0[r0.x + 0].x
mov r0.x, cb0[0].y
mov o0.y, x0[r0.x + 0].x
mov r0.x, cb0[0].z
mov o0.z, x0[r0.x + 0].x
mov r0.x, cb0[0].w
mov o0.w, x0[r0.x + 0].x
ret
// Approximately 21 instruction slots used
#endif
const BYTE g_PS_SwizzleUI2D[] =
{
68, 88, 66, 67, 255, 167,
19, 151, 79, 137, 69, 230,
159, 28, 107, 211, 13, 155,
249, 151, 1, 0, 0, 0,
164, 4, 0, 0, 5, 0,
0, 0, 52, 0, 0, 0,
60, 1, 0, 0, 148, 1,
0, 0, 200, 1, 0, 0,
40, 4, 0, 0, 82, 68,
69, 70, 0, 1, 0, 0,
1, 0, 0, 0, 124, 0,
0, 0, 2, 0, 0, 0,
28, 0, 0, 0, 0, 4,
255, 255, 0, 1, 0, 0,
204, 0, 0, 0, 92, 0,
0, 0, 2, 0, 0, 0,
4, 0, 0, 0, 4, 0,
0, 0, 255, 255, 255, 255,
0, 0, 0, 0, 1, 0,
0, 0, 13, 0, 0, 0,
104, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 84, 101, 120, 116,
117, 114, 101, 85, 73, 50,
68, 0, 83, 119, 105, 122,
122, 108, 101, 80, 114, 111,
112, 101, 114, 116, 105, 101,
115, 0, 171, 171, 104, 0,
0, 0, 1, 0, 0, 0,
148, 0, 0, 0, 16, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 172, 0,
0, 0, 0, 0, 0, 0,
16, 0, 0, 0, 2, 0,
0, 0, 188, 0, 0, 0,
0, 0, 0, 0, 83, 119,
105, 122, 122, 108, 101, 73,
110, 100, 105, 99, 101, 115,
0, 171, 1, 0, 19, 0,
1, 0, 4, 0, 0, 0,
0, 0, 0, 0, 0, 0,
77, 105, 99, 114, 111, 115,
111, 102, 116, 32, 40, 82,
41, 32, 72, 76, 83, 76,
32, 83, 104, 97, 100, 101,
114, 32, 67, 111, 109, 112,
105, 108, 101, 114, 32, 57,
46, 51, 48, 46, 57, 50,
48, 48, 46, 49, 54, 51,
56, 52, 0, 171, 73, 83,
71, 78, 80, 0, 0, 0,
2, 0, 0, 0, 8, 0,
0, 0, 56, 0, 0, 0,
0, 0, 0, 0, 1, 0,
0, 0, 3, 0, 0, 0,
0, 0, 0, 0, 15, 0,
0, 0, 68, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 3, 0, 0, 0,
1, 0, 0, 0, 3, 3,
0, 0, 83, 86, 95, 80,
79, 83, 73, 84, 73, 79,
78, 0, 84, 69, 88, 67,
79, 79, 82, 68, 0, 171,
171, 171, 79, 83, 71, 78,
44, 0, 0, 0, 1, 0,
0, 0, 8, 0, 0, 0,
32, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
1, 0, 0, 0, 0, 0,
0, 0, 15, 0, 0, 0,
83, 86, 95, 84, 65, 82,
71, 69, 84, 0, 171, 171,
83, 72, 68, 82, 88, 2,
0, 0, 64, 0, 0, 0,
150, 0, 0, 0, 89, 0,
0, 4, 70, 142, 32, 0,
0, 0, 0, 0, 1, 0,
0, 0, 88, 24, 0, 4,
0, 112, 16, 0, 0, 0,
0, 0, 68, 68, 0, 0,
98, 16, 0, 3, 50, 16,
16, 0, 1, 0, 0, 0,
101, 0, 0, 3, 242, 32,
16, 0, 0, 0, 0, 0,
104, 0, 0, 2, 1, 0,
0, 0, 105, 0, 0, 4,
0, 0, 0, 0, 6, 0,
0, 0, 4, 0, 0, 0,
61, 16, 0, 7, 242, 0,
16, 0, 0, 0, 0, 0,
1, 64, 0, 0, 0, 0,
0, 0, 70, 126, 16, 0,
0, 0, 0, 0, 86, 0,
0, 5, 50, 0, 16, 0,
0, 0, 0, 0, 70, 0,
16, 0, 0, 0, 0, 0,
56, 0, 0, 7, 50, 0,
16, 0, 0, 0, 0, 0,
70, 0, 16, 0, 0, 0,
0, 0, 70, 16, 16, 0,
1, 0, 0, 0, 27, 0,
0, 5, 50, 0, 16, 0,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0,
0, 0, 54, 0, 0, 7,
66, 32, 16, 0, 0, 0,
0, 0, 10, 48, 32, 4,
0, 0, 0, 0, 10, 0,
16, 0, 0, 0, 0, 0,
54, 0, 0, 6, 18, 0,
16, 0, 0, 0, 0, 0,
58, 128, 32, 0, 0, 0,
0, 0, 0, 0, 0, 0,
54, 0, 0, 7, 130, 32,
16, 0, 0, 0, 0, 0,
10, 48, 32, 4, 0, 0,
0, 0, 10, 0, 16, 0,
0, 0, 0, 0, 62, 0,
0, 1, 83, 84, 65, 84,
116, 0, 0, 0, 21, 0,
0, 0, 1, 0, 0, 0,
0, 0, 0, 0, 2, 0,
0, 0, 1, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 1, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 6, 0, 0, 0,
10, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 1, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 6, 0, 0, 0,
0, 0, 0, 0, 2, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0
};
#if 0
//
// Generated by Microsoft (R) HLSL Shader Compiler 9.30.9200.16384
//
//
///
// Buffer Definitions:
//
// cbuffer SwizzleProperties
// {
//
// uint4 SwizzleIndices; // Offset: 0 Size: 16
//
// }
//
//
// Resource Bindings:
//
// Name Type Format Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// TextureUI3D texture uint4 3d 0 1
// SwizzleProperties cbuffer NA NA 0 1
//
//
//
// Input signature:
//
// Name Index Mask Register SysValue Format Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_POSITION 0 xyzw 0 POS float
// SV_RENDERTARGETARRAYINDEX 0 x 1 RTINDEX uint
// TEXCOORD 0 xyz 2 NONE float xyz
//
//
// Output signature:
//
// Name Index Mask Register SysValue Format Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_TARGET 0 xyzw 0 TARGET uint xyzw
//
ps_4_0
dcl_constantbuffer cb0[1], immediateIndexed
dcl_resource_texture3d (uint,uint,uint,uint) t0
dcl_input_ps linear v2.xyz
dcl_output o0.xyzw
dcl_temps 1
dcl_indexableTemp x0[6], 4
resinfo_uint r0.xyzw, l(0), t0.xyzw
utof r0.xyz, r0.xyzx
mul r0.xyz, r0.xyzx, v2.xyzx
ftoi r0.xyz, r0.xyzx
mov r0.w, l(0)
ld r0.xyzw, r0.xyzw, t0.xyzw
mov x0[0].x, r0.x
mov x0[1].x, r0.y
mov x0[2].x, r0.z
mov x0[3].x, r0.w
mov x0[4].x, l(0)
mov x0[5].x, l(1)
mov r0.x, cb0[0].x
mov o0.x, x0[r0.x + 0].x
mov r0.x, cb0[0].y
mov o0.y, x0[r0.x + 0].x
mov r0.x, cb0[0].z
mov o0.z, x0[r0.x + 0].x
mov r0.x, cb0[0].w
mov o0.w, x0[r0.x + 0].x
ret
// Approximately 21 instruction slots used
#endif
const BYTE g_PS_SwizzleUI3D[] =
{
68, 88, 66, 67, 49, 1,
112, 225, 163, 227, 102, 82,
218, 3, 161, 60, 179, 27,
12, 252, 1, 0, 0, 0,
200, 4, 0, 0, 5, 0,
0, 0, 52, 0, 0, 0,
60, 1, 0, 0, 196, 1,
0, 0, 248, 1, 0, 0,
76, 4, 0, 0, 82, 68,
69, 70, 0, 1, 0, 0,
1, 0, 0, 0, 124, 0,
0, 0, 2, 0, 0, 0,
28, 0, 0, 0, 0, 4,
255, 255, 0, 1, 0, 0,
204, 0, 0, 0, 92, 0,
0, 0, 2, 0, 0, 0,
4, 0, 0, 0, 8, 0,
0, 0, 255, 255, 255, 255,
0, 0, 0, 0, 1, 0,
0, 0, 13, 0, 0, 0,
104, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 84, 101, 120, 116,
117, 114, 101, 85, 73, 51,
68, 0, 83, 119, 105, 122,
122, 108, 101, 80, 114, 111,
112, 101, 114, 116, 105, 101,
115, 0, 171, 171, 104, 0,
0, 0, 1, 0, 0, 0,
148, 0, 0, 0, 16, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 172, 0,
0, 0, 0, 0, 0, 0,
16, 0, 0, 0, 2, 0,
0, 0, 188, 0, 0, 0,
0, 0, 0, 0, 83, 119,
105, 122, 122, 108, 101, 73,
110, 100, 105, 99, 101, 115,
0, 171, 1, 0, 19, 0,
1, 0, 4, 0, 0, 0,
0, 0, 0, 0, 0, 0,
77, 105, 99, 114, 111, 115,
111, 102, 116, 32, 40, 82,
41, 32, 72, 76, 83, 76,
32, 83, 104, 97, 100, 101,
114, 32, 67, 111, 109, 112,
105, 108, 101, 114, 32, 57,
46, 51, 48, 46, 57, 50,
48, 48, 46, 49, 54, 51,
56, 52, 0, 171, 73, 83,
71, 78, 128, 0, 0, 0,
3, 0, 0, 0, 8, 0,
0, 0, 80, 0, 0, 0,
0, 0, 0, 0, 1, 0,
0, 0, 3, 0, 0, 0,
0, 0, 0, 0, 15, 0,
0, 0, 92, 0, 0, 0,
0, 0, 0, 0, 4, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 118, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 3, 0, 0, 0,
2, 0, 0, 0, 7, 7,
0, 0, 83, 86, 95, 80,
79, 83, 73, 84, 73, 79,
78, 0, 83, 86, 95, 82,
69, 78, 68, 69, 82, 84,
65, 82, 71, 69, 84, 65,
82, 82, 65, 89, 73, 78,
68, 69, 88, 0, 84, 69,
88, 67, 79, 79, 82, 68,
0, 171, 79, 83, 71, 78,
44, 0, 0, 0, 1, 0,
0, 0, 8, 0, 0, 0,
32, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
1, 0, 0, 0, 0, 0,
0, 0, 15, 0, 0, 0,
83, 86, 95, 84, 65, 82,
71, 69, 84, 0, 171, 171,
83, 72, 68, 82, 76, 2,
0, 0, 64, 0, 0, 0,
147, 0, 0, 0, 89, 0,
0, 4, 70, 142, 32, 0,
0, 0, 0, 0, 1, 0,
0, 0, 88, 40, 0, 4,
0, 112, 16, 0, 0, 0,
0, 0, 68, 68, 0, 0,
98, 16, 0, 3, 114, 16,
16, 0, 2, 0, 0, 0,
101, 0, 0, 3, 242, 32,
16, 0, 0, 0, 0, 0,
104, 0, 0, 2, 1, 0,
0, 0, 105, 0, 0, 4,
0, 0, 0, 0, 6, 0,
0, 0, 4, 0, 0, 0,
61, 16, 0, 7, 242, 0,
16, 0, 0, 0, 0, 0,
1, 64, 0, 0, 0, 0,
0, 0, 70, 126, 16, 0,
0, 0, 0, 0, 86, 0,
0, 5, 114, 0, 16, 0,
0, 0, 0, 0, 70, 2,
16, 0, 0, 0, 0, 0,
56, 0, 0, 7, 114, 0,
16, 0, 0, 0, 0, 0,
70, 2, 16, 0, 0, 0,
0, 0, 70, 18, 16, 0,
2, 0, 0, 0, 27, 0,
0, 5, 114, 0, 16, 0,
0, 0, 0, 0, 70, 2,
16, 0, 0, 0, 0, 0,
54, 0, 0, 5, 130, 0,
16, 0, 0, 0, 0, 0,
1, 64, 0, 0, 0, 0,
0, 0, 45, 0, 0, 7,
242, 0, 16, 0, 0, 0,
0, 0, 70, 14, 16, 0,
0, 0, 0, 0, 70, 126,
16, 0, 0, 0, 0, 0,
54, 0, 0, 6, 18, 48,
32, 0, 0, 0, 0, 0,
0, 0, 0, 0, 10, 0,
16, 0, 0, 0, 0, 0,
54, 0, 0, 6, 18, 48,
32, 0, 0, 0, 0, 0,
1, 0, 0, 0, 26, 0,
16, 0, 0, 0, 0, 0,
54, 0, 0, 6, 18, 48,
32, 0, 0, 0, 0, 0,
2, 0, 0, 0, 42, 0,
16, 0, 0, 0, 0, 0,
54, 0, 0, 6, 18, 48,
32, 0, 0, 0, 0, 0,
3, 0, 0, 0, 58, 0,
16, 0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 0, 0, 0, 0, 0,
0, 0, 6, 0, 0, 0,
0, 0, 0, 0, 2, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0
};
...@@ -55,6 +55,18 @@ call:BuildShader Passthrough3D11.hlsl PS_PassthroughR3DI ps_4_0 compiled\p ...@@ -55,6 +55,18 @@ call:BuildShader Passthrough3D11.hlsl PS_PassthroughR3DI ps_4_0 compiled\p
call:BuildShader Passthrough3D11.hlsl PS_PassthroughLum3D ps_4_0 compiled\passthroughlum3d11ps.h %debug% call:BuildShader Passthrough3D11.hlsl PS_PassthroughLum3D ps_4_0 compiled\passthroughlum3d11ps.h %debug%
call:BuildShader Passthrough3D11.hlsl PS_PassthroughLumAlpha3D ps_4_0 compiled\passthroughlumalpha3d11ps.h %debug% call:BuildShader Passthrough3D11.hlsl PS_PassthroughLumAlpha3D ps_4_0 compiled\passthroughlumalpha3d11ps.h %debug%
call:BuildShader Swizzle11.hlsl PS_SwizzleF2D ps_4_0 compiled\swizzlef2dps.h %debug%
call:BuildShader Swizzle11.hlsl PS_SwizzleI2D ps_4_0 compiled\swizzlei2dps.h %debug%
call:BuildShader Swizzle11.hlsl PS_SwizzleUI2D ps_4_0 compiled\swizzleui2dps.h %debug%
call:BuildShader Swizzle11.hlsl PS_SwizzleF3D ps_4_0 compiled\swizzlef3dps.h %debug%
call:BuildShader Swizzle11.hlsl PS_SwizzleI3D ps_4_0 compiled\swizzlei3dps.h %debug%
call:BuildShader Swizzle11.hlsl PS_SwizzleUI3D ps_4_0 compiled\swizzleui3dps.h %debug%
call:BuildShader Swizzle11.hlsl PS_SwizzleF2DArray ps_4_0 compiled\swizzlef2darrayps.h %debug%
call:BuildShader Swizzle11.hlsl PS_SwizzleI2DArray ps_4_0 compiled\swizzlei2darrayps.h %debug%
call:BuildShader Swizzle11.hlsl PS_SwizzleUI2DArray ps_4_0 compiled\swizzleui2darrayps.h %debug%
call:BuildShader Clear11.hlsl VS_ClearFloat vs_4_0 compiled\clearfloat11vs.h %debug% call:BuildShader Clear11.hlsl VS_ClearFloat vs_4_0 compiled\clearfloat11vs.h %debug%
call:BuildShader Clear11.hlsl PS_ClearFloat ps_4_0 compiled\clearfloat11ps.h %debug% call:BuildShader Clear11.hlsl PS_ClearFloat ps_4_0 compiled\clearfloat11ps.h %debug%
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment