HLSL: Non-functional: Make test valid HLSL, and related comments/cleanup.
This commit is contained in:
parent
e2ff404f6b
commit
054378d988
4 changed files with 63 additions and 59 deletions
|
|
@ -1,17 +1,17 @@
|
|||
cbuffer {
|
||||
cbuffer buf1 {
|
||||
float4 v1;
|
||||
};
|
||||
|
||||
tbuffer {
|
||||
tbuffer buf2 {
|
||||
float4 v2;
|
||||
};
|
||||
|
||||
cbuffer cbufName : register(b2, space10) {
|
||||
float4 v3;
|
||||
int i3 : packoffset(c1.y);
|
||||
cbuffer cbufName {
|
||||
float4 v3 : packoffset(c0);
|
||||
int i3 : packoffset(c1.y);
|
||||
} // no semicolon is okay
|
||||
|
||||
tbuffer tbufName : register(b8) {
|
||||
tbuffer tbufName : register(t8) {
|
||||
float4 v4 : packoffset(c1);
|
||||
int i4 : packoffset(c3);
|
||||
float f1 : packoffset(c3.w);
|
||||
|
|
@ -19,14 +19,14 @@ tbuffer tbufName : register(b8) {
|
|||
float f4 : packoffset(c4.y);
|
||||
float f5 : packoffset(c4.z);
|
||||
float f6 : packoffset(c);
|
||||
float f7;
|
||||
float3x4 m1;
|
||||
row_major float3x4 m2;
|
||||
column_major float3x4 m3;
|
||||
float3x4 m4;
|
||||
float f7 : packoffset(c8);
|
||||
float3x4 m1 : packoffset(c7);
|
||||
row_major float3x4 m2 : packoffset(c11);
|
||||
column_major float3x4 m3 : packoffset(c15);
|
||||
float3x4 m4 : packoffset(c19);
|
||||
} // no semicolon is okay
|
||||
|
||||
float4 PixelShaderFunction(float4 input) : COLOR0
|
||||
float4 PixelShaderFunction(float4 input : SV_POSITION) : SV_TARGET0
|
||||
{
|
||||
return input + v1 + v2 + v3 + v4;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue