Merge pull request #401 from steve-lunarg/samplers

HLSL: Add texture Load method & decomposition
This commit is contained in:
John Kessenich 2016-07-21 14:41:47 -06:00 committed by GitHub
commit 75e547c0f2
14 changed files with 2501 additions and 96 deletions

View file

@ -86,6 +86,7 @@ struct TSampler { // misnomer now; includes images, textures without sampler,
bool isTexture() const { return !sampler && !image; }
bool isShadow() const { return shadow; }
bool isArrayed() const { return arrayed; }
bool isMultiSample() const { return ms; }
void clear()
{

View file

@ -1,5 +1,6 @@
//
//Copyright (C) 2002-2005 3Dlabs Inc. Ltd.
//Copyright (C) 2016 LunarG, Inc.
//All rights reserved.
//
//Redistribution and use in source and binary forms, with or without
@ -47,6 +48,16 @@ class TInfoSink;
namespace glslang {
struct TVectorFields {
TVectorFields() { }
TVectorFields(int c0, int c1, int c2, int c3) : num(4)
{
offsets[0] = c0;
offsets[1] = c1;
offsets[2] = c2;
offsets[3] = c3;
}
int offsets[4];
int num;
};