SPV: Plumb through XFB buffer and stride information.
Also, only emit this XFB information where the SPIR-V spec says it should be emitted: essentially, on objects. This and the previous commit together fix #1185.
This commit is contained in:
parent
be3842f6ae
commit
edaf556778
7 changed files with 88 additions and 20 deletions
|
|
@ -583,6 +583,7 @@ public:
|
|||
xfbBuffers[buffer].stride = stride;
|
||||
return true;
|
||||
}
|
||||
unsigned getXfbStride(int buffer) const { return xfbBuffers[buffer].stride; }
|
||||
int addXfbBufferOffset(const TType&);
|
||||
unsigned int computeTypeXfbSize(const TType&, bool& containsDouble) const;
|
||||
static int getBaseAlignmentScalar(const TType&, int& size);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue