realitix/vulk

View on GitHub
vulk/graphic/texture.py

Summary

Maintainability
B
5 hrs
Test Coverage

File texture.py has 252 lines of code (exceeds 250 allowed). Consider refactoring.
Open

'''
This module allows to load texture and to sample from it
'''
import numpy as np
from vulkbare import load_image, resize_image
Severity: Minor
Found in vulk/graphic/texture.py - About 2 hrs to fix

    Function set_sampler has 9 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        def set_sampler(self, context, mag_filter=vc.Filter.NEAREST,
    Severity: Major
    Found in vulk/graphic/texture.py - About 1 hr to fix

      Function __init__ has 6 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          def __init__(self, context, width, height, texture_format, raw_bitmap,
      Severity: Minor
      Found in vulk/graphic/texture.py - About 45 mins to fix

        Function __init__ has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            def __init__(self, context, width, height, texture_format, mip_levels=1):
        Severity: Minor
        Found in vulk/graphic/texture.py - About 35 mins to fix

          Function __init__ has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              def __init__(self, texture, u=0, v=0, u2=1, v2=1):
          Severity: Minor
          Found in vulk/graphic/texture.py - About 35 mins to fix

            There are no issues that match your filters.

            Category
            Status