All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.gempukku.libgdx.graph.shader.node.DefaultFieldOutput Maven / Gradle / Ivy

The newest version!
package com.gempukku.libgdx.graph.shader.node;

import com.gempukku.libgdx.graph.shader.ShaderFieldType;

public class DefaultFieldOutput implements GraphShaderNodeBuilder.FieldOutput {
    private ShaderFieldType fieldType;
    private String representation;
    private String samplerRepresentation;

    public DefaultFieldOutput(ShaderFieldType fieldType, String representation) {
        this(fieldType, representation, null);
    }

    public DefaultFieldOutput(ShaderFieldType fieldType, String representation, String samplerRepresentation) {
        this.fieldType = fieldType;
        this.representation = representation;
        this.samplerRepresentation = samplerRepresentation;
    }

    @Override
    public ShaderFieldType getFieldType() {
        return fieldType;
    }

    @Override
    public String getRepresentation() {
        return representation;
    }

    @Override
    public String getSamplerRepresentation() {
        return samplerRepresentation;
    }

    public String toString() {
        return getRepresentation();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy