mirror of
				https://github.com/libsdl-org/SDL.git
				synced 2025-10-26 12:27:44 +00:00 
			
		
		
		
	 a864dcac25
			
		
	
	a864dcac25
	
	
	
		
			
			SDL_CreateGPURenderer() now allows passing in an existing GPU device and passing in a NULL window to create an offscreen renderer. Also renamed SDL_SetRenderGPUState() to SDL_SetGPURenderState().
		
			
				
	
	
		
			18 lines
		
	
	
		
			241 B
		
	
	
	
		
			HLSL
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			241 B
		
	
	
	
		
			HLSL
		
	
	
	
	
	
| 
 | |
| struct VSInput
 | |
| {
 | |
|     float3 Position : TEXCOORD0;
 | |
|     float3 Color : TEXCOORD1;
 | |
| };
 | |
| 
 | |
| struct VSOutput
 | |
| {
 | |
|     float4 Color : TEXCOORD0;
 | |
|     float4 Position : SV_Position;
 | |
| };
 | |
| 
 | |
| float4 main(VSOutput input) : SV_Target0
 | |
| {
 | |
|     return input.Color;
 | |
| }
 |