Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

#ActualAlaryn

Posted 17 August 2012 - 04:36 AM

Hmm, I switched render target format to R16G16B16_FLOAT and use following shader:

float4 PS(in float4 vPosition : SV_POSITION) : SV_TARGET
{
	return float4(f32tof16(1.5), 1.5, 1, 1);
}

And finally I looked up the output. The red channel was 0x73c0 (incorrect) and the blue channel 0x3e00 (correct 1.5 representation).

#4Alaryn

Posted 17 August 2012 - 04:33 AM

Hmm, I switched render target format to R16G16B16_FLOAT and use following shader:

[source lang="cpp"]float4 PS(in float4 vPosition : SV_POSITION) : SV_TARGET{ return float4(f32tof16(1.5), 1.5, 1, 1);}[/source]

And finally I looked up the output. The red channel was 0x73c0 (incorrect) and the blue channel 0x3e00 (correct 1.5 representation).

#3Alaryn

Posted 17 August 2012 - 04:33 AM

Hmm, I switched render target format to R16G16B16_FLOAT and use following shader:

[source lang="cpp"]float4 PS(in float4 vPosition : SV_POSITION) : SV_TARGET{ return float4(f32tof16(1.5), 1.5, 1, 1);}[/source]

And finally I looked up the output. The red channel is 0x73c0 (incorrect) and the blue channel is 0x3e00 (correct 1.5 representation).

#2Alaryn

Posted 17 August 2012 - 04:32 AM

Hmm, I switched render target format to R16G16B16_FLOAT and use following shader:

[source lang="cpp"]float4 PSMain16(in float4 vPosition : SV_POSITION) : SV_TARGET{ return float4(f32tof16(1.5), 1.5, 1, 1);}[/source]

And finally I looked up the output. The red channel is 0x73c0 (incorrect) and the blue channel is 0x3e00 (correct 1.5 representation).

#1Alaryn

Posted 17 August 2012 - 04:32 AM

Hmm, I switched render target format to R16G16B16_FLOAT and use following shader:
[source lang="cpp"]float4 PSMain16(in float4 vPosition : SV_POSITION) : SV_TARGET{ return float4(f32tof16(1.5), 1.5, 1, 1);}[/source]
And finally I looked up the output. The red channel is 0x73c0 (incorrect) and the blue channel is 0x3e00 (correct 1.5 representation).

PARTNERS