#define MAX_LIGHTS_POWER 10
#define MAX_LIGHTS (1<<MAX_LIGHTS_POWER)
In the sample exe,the max light number is 1024.How do you get 1024 from 1<<10?What does << do?
Also the main function of the Pixel Shader(GBufferPS) returns a struct:
struct GBuffer
{
float4 normal_specular : SV_Target0;
float4 albedo : SV_Target1;
float2 positionZGrad : SV_Target2;
};
Instead of a float4.How does the gpu even work with this?I mean a pixel shader can only return a color,right?Not a whole struct.