In regards to the Image Zoom shader, can it be used with DX12? I need to use DX12 for IshiirukaFX lighting etc. (Doesn't work on OpenGL) but I get this when adding the zoom:
I can only assume it has something to do with the float2 usage within the shader's code:
Is there a way around this so I can use the zoom shader on DX12?
EDIT: Oops, did some more digging and found a simpler version of this script - it works! For anyone else wondering:
Quote:Error X3014: incorrect number of arguments to numeric-type constructor
I can only assume it has something to do with the float2 usage within the shader's code:
Code:
void main()
{
float2 coord = float2(0.5,1-GetOption(OFFSET)) + (GetCoordinates()-float2(0.5,1)) * float2(1,GetOption(ASPECT)) / GetOption(ZOOM);
SetOutput(clamp(coord,0,1)==coord ? SampleLocation(coord) : float4(0));
}
Is there a way around this so I can use the zoom shader on DX12?
EDIT: Oops, did some more digging and found a simpler version of this script - it works! For anyone else wondering:
Code:
void main() {
float2 coords = GetCoordinates() - float2(0.5, 0.5);
float2 new_coords = float2(coords.x, coords.y*3/4);
float2 sample_coords = new_coords + float2(0.5, 0.5);
SetOutput(SampleLocation(sample_coords));
}