HLSL: Add texture Load method & decomposition

This commit is contained in:
LoopDawg 2016-07-20 16:34:44 -06:00
parent 83768cb541
commit f245101954
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;
};