- Jul 31, 2017
-
-
John Kessenich authored
-
John Kessenich authored
-
John Kessenich authored
-
John Kessenich authored
-
John Kessenich authored
-
John Kessenich authored
-
John Kessenich authored
Most of this was obsoleted by entry-point wrapping. Some other is just unnecessary. Also, includes some spelling/name improvements. This is to help lay ground work for flattening user I/O.
-
- Jul 29, 2017
-
-
John Kessenich authored
HLSL: Non-functional: warning fix + remove unused member
-
- Jul 28, 2017
-
-
John Kessenich authored
-
John Kessenich authored
-
John Kessenich authored
-
- Jul 27, 2017
-
-
John Kessenich authored
SPV: Memory qualifiers should decorate top-level block members
-
Rex Xu authored
-
- Jul 26, 2017
-
-
John Kessenich authored
HLSL: handle multiple clip/cull semantic IDs
-
LoopDawg authored
HLSL allows several variables to be declared. There are packing rules involved: e.g, a float3 and a float1 can be packed into a single array[4], while for a float3 and another float3, the second one will skip the third array entry to avoid straddling This is implements that ability. Because there can be multiple variables involved, and the final output array will often be a different type altogether (to fuse the values into a single destination), a new variable is synthesized, unlike the prior clip/cull support which used the declared variable. The new variable name is taken from one of the declared ones, so the old tests are unchanged. Several new tests are added to test various packing scenarios. Only two semantic IDs are supported: 0, and 1, per HLSL rules. This is encapsulated in static const int maxClipCullRegs = 2; and the algorithm (probably :) ) generalizes to larger values, although there are a few issues around how HLSL would pack (e.g, would 4 scalars be packed into a single HLSL float4 out reg? Probably, and this algorithm assumes so).
-
John Kessenich authored
-
- Jul 25, 2017
-
-
John Kessenich authored
Fix dref explicit LOD form of sample with cube texture arrays
-
LoopDawg authored
The dref parameter was being used as the LOD. Now it it's properly the dref.
-
- Jul 23, 2017
-
-
John Kessenich authored
-
John Kessenich authored
-
- Jul 21, 2017
-
-
John Kessenich authored
-
John Kessenich authored
HLSL: Fix crash with --resource-set-binding [n] (global form, not per-register form)
-
- Jul 20, 2017
-
-
John Kessenich authored
-
- Jul 18, 2017
-
-
LoopDawg authored
--resource-set-binding has a mode which allows per-register assignments of bindings and descriptor sets on the command line, and another accepting a single descriptor set value to assign to all variables. The former worked, but the latter would crash when assigning the values. This fixes it, and makes the former case a bit more robust against premature termination of the pre-register values, which must come in (regname,set,binding) triples. This also allows the form "--resource-set-binding stage setnum", which was mentioned in the usage message, but did not parse. The operation of the per-register form of this option is unchanged.
-
John Kessenich authored
SPV: Decorate parameters
-
John Kessenich authored
-
John Kessenich authored
-
- Jul 16, 2017
-
-
John Kessenich authored
HLSL: Fix #980: flatten opaque initializers to use aliases.
-
John Kessenich authored
-
John Kessenich authored
Fix NULL pointer dereference in TParseContext::builtInOpCheck
-
- Jul 15, 2017
-
-
Gabríel Arthúr Pétursson authored
-
- Jul 14, 2017
-
-
John Kessenich authored
-
John Kessenich authored
Address part B of #982: $Global will use std140 instead of HLSL offsets.
-
- Jul 13, 2017
-
-
John Kessenich authored
From comment about this: Adjust alignment for HLSL rules TODO: make this consistent in early phases of code: adjusting this late means inconsistencies with earlier code, which for reflection is an issue. Until reflection is brought in sync with these adjustments, don't apply to $Global, which is the most likely to rely on reflection, and least likely to rely implicit layouts.
-
John Kessenich authored
HLSL: support global const initializers from non-constant rvalues
-
John Kessenich authored
Fix StandAlone.cpp compilation warnings
-
- Jul 12, 2017
-
-
LoopDawg authored
find_first_of returns size_t, was overflowing int.
-
- Jul 11, 2017
-
-
LoopDawg authored
Semantic test left over from other source languages is removed, since this is permitted by HLSL. Also, to support the functionality, a targeted test is performed for this case and it is turned into a EvqGlobal qualifier to create an AST initialization segment when needed. Constness is now propagated up aggregate chains during initializer construction. This handles hierarchical cases such as the distinction between: static const float2 a[2] = { { 1, 2 }, { 3, 4} }; vs static const float2 a[2] = { { 1, 2 }, { cbuffer_member, 4} }; The first of which can use a first class constant initalization, and the second cannot.
-
- Jul 07, 2017
-
-
John Kessenich authored
-